Re: namespace separator poll, update

From: Date: Mon, 28 Nov 2005 06:27:40 +0000
Subject: Re: namespace separator poll, update
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-20692@lists.php.net to get a copy of this message
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: - "<-" 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 would work if mandatory whitespace would be introduced for the ternary BUT this is very very bad. Regarding the other suggestions, ":::" seems to be something almost everybody could at least live with. OLLi Updated table follows: Second update: Namespace Operators ========================================================================================================================
Name                 |s| %%  |( : )| ::: | ::< | :<  |(<- )| :>  | \   | ->  | \\  | <:: | <:  | ..  |     |     |     |
---------------------+-+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
Robert Deaton        |-| +0  |     | -1  |     |     | -2  | +1  |     |     |     |     |     |     |     |     |     |
Alan Knowles         |-|     | +1  |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
Greg Beaver          |-|     | +0  | +0  | +0  | +0  |     | +0  | +0  | +1  | +1  | +0  | +0  |     |     |     |     |
Jessie Hernandez     |-| +1  | +1  | +2  |     |     |     |     |     |     |     |     |     |     |     |     |     |
Matt Friedman        |-|     |     | -1  |     |     | +1  |     | -1  |     |     | +1  | +1  |     |     |     |     |
David Zülke          |-|     |     | +2  |     |     | +1  | -1  |     |     |     |     | -1  |     |     |     |     |
Oliver Grätz         |*| +2  | +2  | +1  | -1  | +0  | -2  | +0  | -2  | -2  | -2  | +0  | +0  | -2  |     |     |     |
Matthew C. Kavanagh  |-| -1  |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
Jasper Bryant-Greene |-|     |     |     |     | -1  | +1  | -1  |     |     |     |     | -1  |     |     |     |     |
Eric Coleman         |-| -1  | +2  |     |     |     | +1  | +1  | -1  |     |     |     |     |     |     |     |     |
Christian Stocker    |-|     |     |     |     | -1  |     | -1  | +1  |     |     |     | -1  |     |     |     |     |
Stanislav Malyshev   |-|     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
Jared Williams       |-|     |     |     |     |     |     |     |     | +1  |     |     |     |     |     |     |     |
Jason Garber         |-|     |     |     |     |     |     |     |     |     |     |     |     | +1  |     |     |     |
Nicolas Bérard Nault |-| -2  |     |     |     |     | +2  |     | +1  |     |     |     |     |     |     |     |     |
Sara Golemon         |-|     |     | +1  |     |     |     |     |     |     |     |     |     |     |     |     |     |
Jacques Marneweck    |*| -1  | -1  | +2  | -1  | -1  | -1  | -1  | -1  | -1  | +0  | -1  | -1  | +0  |     |     |     |
Sean Coates          |-|     |     | +1  |     |     |     |     |     |     |     |     |     |     |     |     |     |
                     |-|     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
                     |-|     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
                     |-|     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
                     |-|     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |     |
---------------------+-+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
sum (2 counts 2)     | | -2  | +5  | +7  | -2  | -3  | +1  | -2  | -3  | -1  | -1  |  0  | -3  | -1  |     |     |     |
sum (2 counts 1)     | | -2  | +3  | +4  | -2  | -3  | +2  | -2  | -2  |  0  |  0  |  0  | -3  |  0  |     |     |     |
sum (counting +/-)   | | -1  | +4  | +5  | -1  | -1  | +2  |  0  | -1  |  0  | +1  | +2  | -1  | +1  |     |     |     |
========================================================================================================================
Notes: - I took +2 as "likes" +1 as "is fine with" +0 as "can live with" -1 as "dislikes" -2 as "hates" empty for "no comment, no opinion, don't care" - Please don't enter anything other than these values! - The "s" column stands for "self-filled". I compiled the current table from the comments in this newsgroup, so perhaps I didn't get their comments right. - The operators : <- -> could make big problems with the parser. More complaints to follow. *g* - Feel free to add new suggestions to the right. - If you add your name at the bottom, please copy the free line so the next one also has a free one. - Do only edit the votes in *your* line! - Correct the sums if you post. - Please post as attachment! If some of the operators are definitely impossible to implement, please put the headline of column in parentheses (as in "(<-)") ans add a note why this operator can't be done (Hi Marcus *g*). --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#20692) next »