Phobos packages a bit confusing

Rainer Deyke rainerd at eldwood.com
Wed Dec 2 01:54:16 PST 2009


Pelle Månsson wrote:
> Rainer Deyke wrote:
>> "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.

No, like 'file("foo.txt")' or 'fopen("foo.txt")'.  There's always a
trade-off between verbosity and clarity, but names that are both
reasonably short and reasonably unambiguous exist.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list