Minor std.stdio.File.ByLine rant

Jakob Ovrum jakobovrum at gmail.com
Wed Feb 26 16:01:25 PST 2014


On Wednesday, 26 February 2014 at 23:59:09 UTC, bearophile wrote:
> H. S. Teoh:
>
>> I'm writing a CLI program that uses File.ByLine to read input 
>> commands,
>
> Isn't using readln() better for that? File.byLine is to read 
> lines of files on disk.
>
> Bye,
> bearophile

Says who? The type system and documentation only assert that it 
works on files, with no reservations about what kind of file. The 
standard input file is as fine a file as any.


More information about the Digitalmars-d mailing list