chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] [patch] remove the initial check on directory exista


From: Peter Bex
Subject: Re: [Chicken-users] [patch] remove the initial check on directory existance
Date: Sun, 3 Feb 2013 16:26:28 +0100
User-agent: Mutt/1.4.2.3i

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]