
17 Jun
2003
17 Jun
'03
10:35 p.m.
On Tue, Jun 10, 2003 at 10:33:53AM +0100, Simon Marlow wrote:
The question is: is this the interface that we want to expose from System.IO? Personally I have two criticisms: openFileEx is not a particularly descriptive name, and I don't see a reason for IOMode to be nested inside IOModeEx. So I'd suggest this instead:
openBinaryFile :: FilePath -> IOMode -> IO Handle
Perhaps openFileAs? openBinaryFile sounds a bit like it would only open it as a binary, whereas in fact it actually gives you the option of opening it either as binary or as text. -- David Roundy http://www.abridgegame.org