On Tue, 2003-10-14 at 13:02, David Sklar wrote:
> On Tuesday, October 14, 2003 11:18 AM, mailto:[EMAIL PROTECTED] wrote:
> 
> > Right, and as George's example already works I see no point in adding
> > more 'magic' operators that look like Perl to me.
> 
> What about a match operator? I realize that similar functionality can be
> achieved with preg_match(), but we could duplicate all operators with
> functions: if (equals($foo,$bar)) {} instead of if ($foo == bar). Obviously,
> testing equality is a frequent enough operation that it would be clumsy to
> not have an == operator. In the same vein, matching against a regex seems
> like a more frequent operation in web programming than, say bitshifting with
> assignment ala the <<= and >>= operators. Which is why I think it could be a
> useful addition.

Bitshifting being a commonly used C operator makes conversion of C
programs to PHP simplistic. IMHO PHP isn't PERL and if I wanted cryptic
non standard operators I'd be using PERL.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to