Is this a good idea for an operator?
| From: | Cameron Just | Date: | Tue, 03 Aug 1999 06:03:42 +0000 |
| Subject: | Is this a good idea for an operator? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3051@lists.php.net to get a copy of this message | ||
Hi all,
I was just writing some code with a colleague and he said in annoyance that C should have an
operator such as this.
Instead of this in PHP/C code
if ($action=="modify" || $action=="create" || $action=="delete") {
have this
if ($action in ("modify","create","delete")) {
Just thought it would be a good idea to throw into the list as I noticed the new operator which was
to be added to PHP 4.0
It would definitely be a nice addition to the language.
*************************************************************************
Cameron Just (C.Just@its.uq.edu.au)
UQ Web Project
(07) 3365 7412
*************************************************************************