Why does readln include the line terminator?

Robert Fraser fraserofthenight at gmail.com
Wed Apr 15 18:50:25 PDT 2009


Christopher Wright wrote:
> Steven Schveighoffer wrote:
>> auto reader = file.byLine!("/[.,]/")();
> 
> Why specify anything at compile time when a user could reasonably 
> generate the value at runtime?
> 
> auto reader = file.byLine(readConfig().separator);

Yes, and for maximum abstraction, the config file should be stored as 
XML in a TEXT field of a database on another server.



More information about the Digitalmars-d mailing list