Am Mittwoch, 5. Juni 2002 16:41 schrieb Jason T. Greene:
If '+' concatenates what does '-' do?
It drives you nuts.
At least it does so in pike, which is a (discretionary, it has a
type mixed) statically typed language and overloads the
arithmetic operators for string types.
See
Hi Aaron,
In case you've missed it, I have been putting up unofficial patches
for PHP on my website. The latest one changes some operators. See the
website for more details.
Is there a reason why you don't just post them here?
Simply because I have a few other ones on the website that
The latest one changes some operators.
Nice, but why not overload + for strings to do the concatenation?
Doing that would be ambiguous, to say the least. PHP automatically
converts operand types with arithmetic + operator. What would you expect
the result of the following expressions to
If '+' concatenates what does '-' do?
: )
-Jason
On Wed, 2002-06-05 at 09:39, Andrei Zmievski wrote:
The latest one changes some operators.
Nice, but why not overload + for strings to do the concatenation?
Doing that would be ambiguous, to say the least. PHP automatically
Heh, this is sounding like PHP 1 and 2 days again. Back then I had + as
the contanation operator. I actually implemented all the operators.
abc - b gave you ac. abc * def gave you the cross product
vector of vectors abc and def. '/' reversed that.
Not very useful.
On 5 Jun 2002, Jason T.
Rasmus Lerdorf wrote:
Not very useful.
Yeah, never mind.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
--
PHP Development Mailing List http://www.php.net/
To
Rasmus Lerdorf wrote:
Not very useful.
But certainly very cool. Somehow.
Where are the people begging for complexity in the language? ;-)
regards
Wagner
--
When did ignorance become a point of view?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit:
On Wed, 05 Jun 2002, Rasmus Lerdorf wrote:
Heh, this is sounding like PHP 1 and 2 days again. Back then I had + as
the contanation operator. I actually implemented all the operators.
abc - b gave you ac. abc * def gave you the cross product
vector of vectors abc and def. '/' reversed