Hi all!

I'd like to hear from a single one of you who isn't tired of code similar to

<?
  if (!$whatever) {
    $whatever=something;
  }
?>

or else

<?
  if ($whatever)
  {
    $somethingelse=$whatever;
  }
?>

How about a new asignment operator which would shut up all those Python 
enthusiasts - let's say the new operator would be caret - and we could 
replace the first example with

<?
  $whatever^=something;
?>

and the second example with

<?
  $somethingelse=^$whatever;
?>

What's more, we could also have

<?
  $yetanother^=^$anything;
?>

which would assign $anything to $yetanother if and only if both are note 
null.

What do you think?

Bogdan Stancescu



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to