From: Peter da S. <pe...@ab...> - 2004-03-30 17:45:03
|
> Modify the argument order and require the filename first. None of the > other arguments to [open] can look like an option, and nor would they > generally be exposed to values coming from untrusted sources either; I > just don't think anyone would think of programming that way. :^) Yah, none of the other aguments to open can legally match "-async", but aesthetically having it anywhere but the beginning or the end gives me hives: open filename -async rw Ewwwww. > I'm not so keen on that as it is both not very flexible in the case of > inventing new options in the future, and has something of a clash in the > interpretation of the 'a' character, which would indicate both append > mode and asynch mode. Doh, obviously a brain fart. > And you have to think of the other format for that > argument to, the "list of POSIX flags" form. Good point. |