Re: Request for Feedback - Unsigned Right Shift Operator

From: Date: Tue, 02 Apr 2002 05:27:44 +0000
Subject: Re: Request for Feedback - Unsigned Right Shift Operator
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91078@lists.php.net to get a copy of this message
The other argument against adding <<< is that it is the heredoc operator. -Rasmus On 1 Apr 2002, Jason Greene wrote: > > Hello All, > > One of the features that I have been working on for PHP5/Zend Engine 2 > is better unsigned value support for the language. This involves the > addition of a new operator, '>>>' (Unsigned Right Shift). It works the > same as a normal right shift operator, except that it does not hold the > sign during the shift. > > Example: > > 1<<31>>31 == -1 > 1<<31>>>31 == 1 > > Everyone is in agreement on the new operator, however, a few of us have > had a discussion over whether we should add an equivalent '<<<' > operator. The main reason for this would be that it would make the > language more consistent. However, the argument against adding it is > that it is not necessary because there is no technical difference > between << and <<< > > > Feedback anyone? > > Thanks, > > -Jason > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#91078) next »