Phobos packages a bit confusing
Pelle Månsson
pelle.mansson at gmail.com
Tue Dec 1 23:40:51 PST 2009
Rainer Deyke wrote:
> Pelle Månsson wrote:
>> File looks like a constructor. You are not constructing a file you open
>> for reading.
>
> "open" by itself is ambiguous. What are you opening? A window? A
> network port? I think the word "file" needs to be in there somewhere to
> disambiguate.
>
>
Something like new BufferedReader(new FileReader("foo.txt"))? It's quite
unambiguous.
I'll rather have open as a file-opening function.
More information about the Digitalmars-d
mailing list