Phobos packages a bit confusing

"Jérôme M. Berger" jeberger at free.fr
Wed Dec 2 14:28:47 PST 2009


Rainer Deyke wrote:
> 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.
> 
	Note that 'open ("foo.txt", O_RDONLY)' is perfectly valid C code 
for opening a file (unbuffered).

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20091202/2b1a77a5/attachment.pgp>


More information about the Digitalmars-d mailing list