Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread Jasper Bryant-Greene
Joseph Crawford wrote: i vote against ! and \ ! i would have to say <- or <: would be the one's i would be most comfortable and less confused using. Although I did originally like <-, it's impossible because it already has meaning, as "less than the negative value of". -- Jasper Bryant-Green

Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread Joseph Crawford
i vote against ! and \ ! i would have to say <- or <: would be the one's i would be most comfortable and less confused using. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

Re: [PHP-DEV] namespace separator poll, update

2005-12-03 Thread André Luis Ferreira da Silva Bacci
Andrei Zmievski wrote: Gah! I have to squint and count the colons in something like System:::Socket:::Pair::open(). Yikes. My vote is for \. And for ... System!Socket!Pair::open(); $x = $y?nsx!const:nxy!const; // $x = $y ? nsx!const : nxy!const; []s André AE -- PHP Internals - PHP Runt

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Marcus Boerger
Hello Oliver, just once again for the record: :: is *not* working. marcus Monday, November 28, 2005, 2:52:50 PM, you wrote: > Stanislav Malyshev schrieb: >> OG>>BUT the discussion is not only about possibility but also about what you >> OG>>would like. The ":" for example would work if mandat

RE: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Israel Alpert
er 28, 2005 11:38 AM To: Stanislav Malyshev Cc: Oliver Grätz; internals@lists.php.net Subject: Re: [PHP-DEV] namespace separator poll, update Stanislav Malyshev wrote: > OG>>BUT the discussion is not only about possibility but also about > OG>>what you would like. The ":"

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sara Golemon
> namespace1}{Date::myfunction(); > namespace2}{Date::Otherfunction(); > For the same reason that ;; isn't doable (and worse actually). echo "The Baz constant in the Bar class of the Foo namespace is: {Foo}{Bar::Baz}, or is it? Don'tcha hate tokens with multiple meanings?"; -- PHP Internals - P

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Alexander Wirtz
In every email is a signature at the end of the post: PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php If you use the correct email-ad

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
ew On 11/28/05, Bart de Boer <[EMAIL PROTECTED]> wrote: > I'm sorry if I say stupid stuff. My previous post actually was the first > post I've ever made to a newsgroup! Please bare with me while I adjust > to the etiquettes. :) > > Anyway. Somebody has probably already suggested this. But how abou

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Bart de Boer
I'm sorry if I say stupid stuff. My previous post actually was the first post I've ever made to a newsgroup! Please bare with me while I adjust to the etiquettes. :) Anyway. Somebody has probably already suggested this. But how about: namespace1}{Date::myfunction(); namespace2}{Date::Otherfunc

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Greg Beaver
Stanislav Malyshev wrote: OG>>BUT the discussion is not only about possibility but also about what you OG>>would like. The ":" for example would work if mandatory whitespace would OG>>be introduced for the ternary BUT this is very very bad. If my vote is counted (not that I asked for it :) then

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sean Coates
> How about ;; then? > name1;;name2::myfunction(); PLEASE, MAKE IT STOP! ;; is already perfectly valid syntax: [EMAIL PROTECTED]:~$ php5 -r 'define("name1",FALSE); class name2{function myfunction(){ echo "foo\n"; }} name1;;name2::myfunction();' foo * Pre-existing operators are out of the question

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Bart de Boer
Well, the problem is: '->' isn't used for classes. It's used for objects! An object is an instance of a class. '~>' Would be more appropriate if there would be such a thing as an instance of a namespace. But not for accessing the namespace itself. (In my opinion) This is why I think it should

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
It's used for shell execution stuff. Perl did something similar and quickly regretted it On 11/28/05, Marian Kostadinov <[EMAIL PROTECTED]> wrote: > Is ` (back quote) suitable for namespace separator? I cannot remember > just now if it was used somewhere. > > 2005/11/28, Ron Korving <[EMAIL PROTE

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Marian Kostadinov
Is ` (back quote) suitable for namespace separator? I cannot remember just now if it was used somewhere. 2005/11/28, Ron Korving <[EMAIL PROTECTED]>: > wow, I like foo~>bar~>obj->method() > I love ':' best, but if that really can't be, I must say '~>' looks pretty > cool to me, cute even, like a l

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Ron Korving
wow, I like foo~>bar~>obj->method() I love ':' best, but if that really can't be, I must say '~>' looks pretty cool to me, cute even, like a little fishie ;) anywaaay.. the best alternative to ':' i've seen so far, and i doubt it'll cause problems with any existing operator. - ron ""Ford, Mi

RE: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Israel Alpert
l Message- From: Oliver Grätz [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 9:40 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] namespace separator poll, update Stanislav Malyshev schrieb: > yacc can look one token ahead, AFAIR. This could help for "::" (rea

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Oliver Grätz
Stanislav Malyshev schrieb: > yacc can look one token ahead, AFAIR. This could help for "::" (reading a name and seeing "Oh, one more ::, so this is one more namespace"), but not for ":" (there the change of operator precedence would still be needed). OK, now this would have to be sorted out by s

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Stanislav Malyshev
OG>>Well, some people always keep throwing that already used symbols cannot OG>>be used for other purposes. :: is used for resolving class scope. Well, Well, namespace scope and class scope are close enough so that this mixing up would be bearable (and regarding class resolution and namespace re

RE: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Ford, Mike
On 28 November 2005 09:50, Stanislav Malyshev wrote: > > > BUT the discussion is not only about possibility but also about > > > what you would like. The ":" for example would work if mandatory > > > whitespace would be introduced for the ternary BUT this is very > > > very bad. > > If my vote i

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Oliver Grätz
Stanislav Malyshev schrieb: > OG>>BUT the discussion is not only about possibility but also about what you > OG>>would like. The ":" for example would work if mandatory whitespace would > OG>>be introduced for the ternary BUT this is very very bad. > > If my vote is counted (not that I asked for i

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Stanislav Malyshev
OG>>BUT the discussion is not only about possibility but also about what you OG>>would like. The ":" for example would work if mandatory whitespace would OG>>be introduced for the ternary BUT this is very very bad. If my vote is counted (not that I asked for it :) then I vote against all funky sy

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread David Zülke
Why would you have to do that. You only have to look at the last :: / ::: sequence. It's not that hard. - David Am 28.11.2005 um 07:27 schrieb Andrei Zmievski: Gah! I have to squint and count the colons in something like System:::Socket:::Pair::open(). Yikes. My vote is for \. -Andrei

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Jani Taskinen
Oh, I didn't know you could nest these things.. -1000 for whole namespace idea: PREFIX! --Jani On Sun, 27 Nov 2005, Andrei Zmievski wrote: Gah! I have to squint and count the colons in something like System:::Socket:::Pair::open(). Yikes. My vote is for \. -Andrei On Nov 2

Re: [PHP-DEV] namespace separator poll, update

2005-11-27 Thread Andrei Zmievski
Gah! I have to squint and count the colons in something like System:::Socket:::Pair::open(). Yikes. My vote is for \. -Andrei On Nov 27, 2005, at 2:47 PM, Oliver Grätz wrote: Hi *! I updated the table with the comments in the thread. First of all: YES, these won't work as operator: - "<-

[PHP-DEV] namespace separator poll, update

2005-11-27 Thread Oliver Grätz
Hi *! I updated the table with the comments in the thread. First of all: YES, these won't work as operator: - "<-" means "less than the negative value of" - ":" collides with the ternary BUT the discussion is not only about possibility but also about what you would like. The ":" for example woul