Well, there is another option, which is to put an atomic implementation in, say, the posix-extras egg, and then the user may import it under a different name or overwrite posix's create-directory with it.
On Feb 3, 2013, at 9:26 AM, Peter Bex wrote: > On Sun, Feb 03, 2013 at 10:22:45AM -0500, John Cowan wrote: >> Peter Bex scripsit: >> >>> Better to either keep it the way it is, change the semantics and >>> breaking compat (so be it), or convert to keyword args and make it an >>> optional feature (my least favorite alternative). >> >> I'm not a big fan of keyword args either, but an optional second argument >> that makes it atomic wouldn't kill anybody. >> >> (create-directory pathname [ atomic? ] ) > > It already takes an optional second arg. The current signature is: > > (create-directory pathname [ parents? ] ) > > This optional parameter tells it to create parent directories if they > don't exist. Of course we could make it look like: > > (create-directory pathname [ parents? [ atomic? ] ] ) > > This is probably the cleanest backwards-compatible solution. > > Cheers, > Peter > -- > http://sjamaan.ath.cx > > _______________________________________________ > Chicken-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/chicken-users _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
