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:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to