Re: PROPOSAL: "unless" control structure
| From: | Jon Parise | Date: | Sun, 12 Jan 2003 18:47:41 +0000 |
| Subject: | Re: PROPOSAL: "unless" control structure | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93380@lists.php.net to get a copy of this message | ||
On Sun, Jan 12, 2003 at 12:53:12PM -0600, Michael Sims wrote:
> My apologies if this has been brought up before, but I searched the
> archives and couldn't find a reference to it.
>
> I'm sure this is the sort of thing that would have already been
> implemented if there was any desire for it among the developers, but I
> was wondering if anyone had considered adding support for an "unless"
> control structure, similar to the one Perl has. I personally find it
> much more logical in certain cases.
While it would no doubt be easy to implement, I would consider it
unnecessary syntactic sugar. Besides, it actually ends up using
_more_ characters ("unless(":7, "if(!":4) in the long run.
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)