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 11:42:04 +0100
User-agent: Mutt/1.4.2.3i

On Sun, Feb 03, 2013 at 06:42:55PM +1100, richo wrote:
> 3) expose a new function that raises errors if the directory exists so that
> an atomic mkdir is available. My thought is to just name it mkdir, but I'm
> not sure where it belongs.

Please don't do that.  This sort of "design" leads to
mysql_real_escape_string.  It's confusing to the user, and ugly to
have several differently named procedures that do almost exactly
the same thing but with slight differences in behavior.

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).

Cheers,
Peter
-- 
http://sjamaan.ath.cx



reply via email to

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