From: Daniel Berger Date: 2008-07-11T06:32:51+09:00 Subject: Re: file modes On Jul 10, 1:48 pm, "Martin DeMello" wrote: > A post on Arc [http://arcanesentiment.blogspot.com/2008/07/arc-gets-io-right.html] > made an excellent point - file modes are essentially exposing a low > level implementation detail for a high level feature. Would be nice to > have File.open_read, open_write and open_append (or less clunky names > if anyone can think them up; it's the principle of the thing) to > support the common cases. I don't agree. First, there are too many possible combinations, making separate method names infeasible IMO. Second, tradition. Third, it's more code (and more maintenance) for the core developers. Fourth, if we follow that line of reasoning for other libraries (think Socket), the API will explode. Regards, Dan