Re: About SUCCESS/FAILURE

From: Date: Wed, 24 Dec 2014 08:51:16 +0000
Subject: Re: About SUCCESS/FAILURE
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-79913@lists.php.net to get a copy of this message
Hey: On Wed, Dec 24, 2014 at 3:38 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > Hi! > >> But: return 0 and return FAILURE... which is simpler? > > It's equally simple to write, but FAILURE of course is way simpler to > understand when read. I can not agree with that since nowdays, false === 0, true === 1 is almost a common sense. thanks > > -- > Stas Malyshev > smalyshev@gmail.com -- Xinchen Hui @Laruence http://www.laruence.com/

« previous php.internals (#79913) next »