Re: [PHP-DEV] Re: Patch-tastic!

2002-06-06 Thread Kristian Koehntopp
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

[PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Andrei Zmievski
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

[PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Andrei Zmievski
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

Re: [PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Jason T. Greene
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

Re: [PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Rasmus Lerdorf
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.

Re: [PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Sebastian Bergmann
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

Re: [PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Alexander Wagner
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:

Re: [PHP-DEV] Re: Patch-tastic!

2002-06-05 Thread Andrei Zmievski
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