RE: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Dmitry Stogov
You can do "retry" without "goto". do { try { } catch (Exception $e) { continue; } } while (0); Both "goto" and "jump" names are good for me (not "break", not "continue'). However I don't see a lot of reason in "goto" and especially in limited version (even jumping forward may make mes

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

2005-11-27 Thread Oliver Grätz
Marcus Boerger schrieb: > i honestly wouldn't have execpted things like ';;' or '**' from you. First of all: Read the first thread! Anything is accepted as wish. It doesn't matter if it can be realized since we want to get to know what people like. My thoughts (disregarding technical possibiliti

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: - "<-

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

2005-11-27 Thread Jared Williams
> > On 11/27/05, Sara Golemon <[EMAIL PROTECTED]> wrote: > > > > Other possibilities: > > ** Double-Star+2 > > ;;Double-Semicolon +2 > > >>> Reverse Heredoc Operator -1 > > ?? Double Question -1 > > > > -Sara > > I think we should use a non breaking space ( \xA0 ) as the > separator

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

2005-11-27 Thread Jason Sweat
On 11/27/05, Sara Golemon <[EMAIL PROTECTED]> wrote: > > Other possibilities: > ** Double-Star+2 > ;;Double-Semicolon +2 > >>> Reverse Heredoc Operator -1 > ?? Double Question -1 > > -Sara I think we should use a non breaking space ( \xA0 ) as the separator, after all namespace class-

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread George Schlossnagle
me 3. goto is good. Wez Furlong wrote: me also On 11/27/05, Edin Kadribasic <[EMAIL PROTECTED]> wrote: Ilia Alshanetsky wrote: If it comes down to count of +1/-1 about this feature, I am +1 for unrestricted forward/backward jumps and -1 for restricted version. I agree wi

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Wez Furlong
me also. On 11/27/05, Edin Kadribasic <[EMAIL PROTECTED]> wrote: > Ilia Alshanetsky wrote: > > > If it comes down to count of +1/-1 about this feature, I am +1 for > > unrestricted forward/backward jumps and -1 for restricted version. > > I agree with this. > > Edin > -- PHP Internals - PHP Runti

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

2005-11-27 Thread Marcus Boerger
Hello Sara, Monday, November 28, 2005, 12:02:43 AM, you wrote: >> Sara Golemon |-| | | +1 | | | | | | >> | | | | | | | | >> > To flesh-out my overall vote: > %% -2 > ( : ) {whitespace}":"{whitespace} -2 > ::: Shalosh Nekudotayim +

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

2005-11-27 Thread Ian P. Christian
%% -2 ( : ) {whitespace}":"{whitespace} +2 ::: Shalosh Nekudotayim +1 \Backslash -2*10^100 \\ Double Backslash -2*10^100 ** Double-Star-2 ;;Double-Semicolon -2 -- Ian P. Christian ~ http://pookey.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vi

[PHP-DEV] Re: Something (was: Re: [PHP-DEV] Re: Labeled Breaks (not the G-word))

2005-11-27 Thread Nicolas Bérard Nault
I totally agree with you Zeev, your concerns are justified and I appreciate very much your concerns; they confirm PHP is not going to become yet another language with tons of useless features. Nevertheless, my opinion is that goto is not a complex language feature. It occurred to me quite a few tim

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

2005-11-27 Thread Sara Golemon
Sara Golemon |-| | | +1 | | | | | | | | | | | | | | To flesh-out my overall vote: %% -2 ( : ) {whitespace}":"{whitespace} -2 ::: Shalosh Nekudotayim +2 ::< Paamayim Nekudotayim-LessThan -1 :< Sad-Smiley -2 (<- ) "<-"{whites

Re: [PHP-DEV]

2005-11-27 Thread Sara Golemon
I recall this being discussed before, but not what came of it: is there a problem with just ignoring The problem there becomes legacy support for: And before you say "just watch for parens" there's also: and a much more insiduous example: no semicolon, no parens, no paamayim nekudotayim,

[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

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Oliver Grätz
Hartmut Holzgraefe schrieb: > wouldn't that create an amiguity with > >T_LESS_THAN T_UNARY_MINUS > > like in > >if (SOME_CONSTANT<-SOME_OTHER_CONSTANT) > > so that we are back to the same problem we alread have with ':'? Yes we do. Congratulations, you are the 100th contributer statin

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Ian P. Christian
On Sunday 27 November 2005 21:55, Edin Kadribasic wrote: > I agree with this. +1 from me too for waht it's worth. It seems illogical to put a limit on jumping backwards just because someone mihgt make messy code. People are perfectly capable of making messy code regardless of what steps you mi

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Pierre
On Sun, 27 Nov 2005 22:55:08 +0100 [EMAIL PROTECTED] (Edin Kadribasic) wrote: > Ilia Alshanetsky wrote: > > > If it comes down to count of +1/-1 about this feature, I am +1 for > > unrestricted forward/backward jumps and -1 for restricted version. > > I agree with this. Same here --Pierre --

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Edin Kadribasic
Ilia Alshanetsky wrote: If it comes down to count of +1/-1 about this feature, I am +1 for unrestricted forward/backward jumps and -1 for restricted version. I agree with this. Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Something (was: Re: [PHP-DEV] Re: Labeled Breaks (not the G-word))

2005-11-27 Thread Robert Cummings
On Sun, 2005-11-27 at 15:54, Zeev Suraski wrote: > > We *can* screw it if we go in the wrong > direction, and adding redundant features which > are useful in rare cases and much more likely to > be abused than to be properly used is a good step > in that direction. A lot of people are saying w

Re: [PHP-DEV]

2005-11-27 Thread Matthew C. Kavanagh
On Sun, 2005-11-27 at 22:32 +0100, Johannes Schlueter wrote: > It isn't about the XML standard but about exceptions for the PHP parser and > why should which all are used (hm, not sure about combination with PHP. I recall this being discussed before, but not what came of it: is there a problem

Re: [PHP-DEV]

2005-11-27 Thread Johannes Schlueter
Hi, On Sunday 27 November 2005 22:20, Daniel Convissor wrote: > First, PHP scripts are not XML files, so why are we concerned with what > the XML standard says? It isn't about the XML standard but about exceptions for the PHP parser and why should Second, PHP is frequently used to output XML fi

[PHP-DEV]

2005-11-27 Thread Daniel Convissor
Hi Marcus: On Sun, Nov 27, 2005 at 11:58:16AM +0100, Marcus Boerger wrote: > > To second this, the xml standard allows any name after ' instruction. Widely in use is for example ' special treatment for java stuff in PHP? ;-) First, PHP scripts are not XML files, so why are we concerned with wha

Re: [PHP-DEV] Issues with SimpleXML for development

2005-11-27 Thread Christian Stocker
On 27.11.2005 21:50 Uhr, Rowan Lewis wrote: > First off, forgive me if I'm using the wrong list. > > Anyhow, I've been developing a program that uses XML to store cache > files, and I've noticed a highly painfully issue with the SimpleXML > extension: > > It converts (and many other like valid

Re: [PHP-DEV] Issues with SimpleXML for development

2005-11-27 Thread Bastian Grupe
Hi Rowan, the PHP5 XSL extension *does* support XHTML and HTML. And yes, you should use a more general/help list for that kind of issues. Rowan Lewis wrote: First off, forgive me if I'm using the wrong list. Anyhow, I've been developing a program that uses XML to store cache files, and I've n

[PHP-DEV] Something (was: Re: [PHP-DEV] Re: Labeled Breaks (not the G-word))

2005-11-27 Thread Zeev Suraski
At 22:18 27/11/2005, Nicolas Bérard Nault wrote: Goto exists in C. If you affirm that goto should not exist in PHP because it gives the opportunity to screw their code to programmers, are you also affirming that C programmers are smarter than PHP programmers ? I wouldn't make any statement re

[PHP-DEV] Issues with SimpleXML for development

2005-11-27 Thread Rowan Lewis
First off, forgive me if I'm using the wrong list. Anyhow, I've been developing a program that uses XML to store cache files, and I've noticed a highly painfully issue with the SimpleXML extension: It converts (and many other like valid XML and HTML elements) to (only valid XML). This, for any

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Nicolas Bérard Nault
Goto exists in C. If you affirm that goto should not exist in PHP because it gives the opportunity to screw their code to programmers, are you also affirming that C programmers are smarter than PHP programmers ? Goto has had a bad reputation for far too much time. +1 for goto. On 11/27/05, Zeev S

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Hartmut Holzgraefe
Ilia Alshanetsky wrote: If it comes down to count of +1/-1 about this feature, I am +1 for unrestricted forward/backward jumps and -1 for restricted version. same here -- Hartmut Holzgraefe, Senior Support Engineer. MySQL AB, www.mysql.com -- PHP Internals - PHP Ru

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Ilia Alshanetsky
Zeev Suraski wrote: > Given that, I don't see the fact that this limitation is artificially > imposed, implementation-wise, to have any significance at all, either > way. The discussion should be on whether we should allow this > functionality or not. All I am trying to say is that there are not

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Zeev Suraski
At 20:03 27/11/2005, Robert Cummings wrote: On Sun, 2005-11-27 at 07:54, Zeev Suraski wrote: > Guys, > > Laughter has nothing to do with it. > > However, as discussed between those who attended the meeting in > Paris, goto earned its bad connotations for a reason. Goto got it's bad name from whe

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Oliver Grätz
Markus Fischer schrieb: > Kevin Brown wrote: > >>The only scripts that would break (far from "trillions") here would be >>those where you had a space-less ternary statement comparing two >>constants (NOT namespace constants -- they don't even exist yet), as >>in the following case: >> >>define('fo

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Marcus Boerger
Hello Ilia, as far as i know "do while" works pretty well. Just to be sure try this: php -r 'do { echo "Hello\n"; } while (0); echo "World\n";' Sunday, November 27, 2005, 5:06:39 PM, you wrote: > Zeev Suraski wrote: >> 1. A forward-jumping construct only, to avoid giving users too much >> am

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Robert Cummings
On Sun, 2005-11-27 at 07:54, Zeev Suraski wrote: > Guys, > > Laughter has nothing to do with it. > > However, as discussed between those who attended the meeting in > Paris, goto earned its bad connotations for a reason. Goto got it's bad name from when it was used to jump to line numbers. I ca

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Nicolas Bérard Nault
Hadn't thought about that one... Thank you for the comment. I now think '\' is the best choice. On 11/27/05, Lorenzo Alberton <[EMAIL PROTECTED]> wrote: > > Matt Friedman wrote: > > Namespace <:: ClassName > > or > > Namespace <- ClassName > > or > > Namespace <: ClassName > > > > Unless I'm miss

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Wez Furlong
Agreed; I use this style of coding a lot. I'd prefer "goto" but can deal with it being called "jump". --Wez. On 11/27/05, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > Zeev Suraski wrote: > > 1. A forward-jumping construct only, to avoid giving users too much > > ammo to shoot themselves in the

RE: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Jared Williams
> Guys, > > Laughter has nothing to do with it. > > However, as discussed between those who attended the meeting > in Paris, goto earned its bad connotations for a reason. It > was agreed that providing a general-purpose C-goto equivalent > is not a good idea because it *will* very quickly le

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Zeev Suraski
At 18:06 27/11/2005, Ilia Alshanetsky wrote: Zeev Suraski wrote: > 1. A forward-jumping construct only, to avoid giving users too much > ammo to shoot themselves in the foot with spaghetti coding. One of the major uses of "jump" is the ability to "retry on error" by jumping backwards inside the

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Hartmut Holzgraefe
Jasper Bryant-Greene wrote: +1 for <- here. It makes namespace hierarchies resemble diagrams of the same hierarchies (like inheritance in UML). It also visually makes sense, isn't hard to type, and doesn't look like a smiley (like :> etc). wouldn't that create an amiguity with T_LESS_THAN T

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Ilia Alshanetsky
Zeev Suraski wrote: > 1. A forward-jumping construct only, to avoid giving users too much > ammo to shoot themselves in the foot with spaghetti coding. One of the major uses of "jump" is the ability to "retry on error" by jumping backwards inside the code. Given that the limit of the functionalit

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Sander Steffann
Hi, On Sun, 27 Nov 2005, Zeev Suraski wrote: I'm not sold on reusing the break construct for that, since we're not really breaking, and I kind of like Ilia's "jump" idea. Another possibility would be reusing 'continue', which makes a bit more English sense, even though it's not very similar

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Stanislav Malyshev
SC>>Changed that to Shalosh (as apparently the -ayim means "twice" (as in SC>>PAAM=2, AYIM=twice, NEKUDOT=dot, AYIM=twice)). PAAM actually means "once" :) -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Sean Coates
> Sean reckons that it's Shaloshayim > (http://blog.phpdoc.info/archives/27-+1-for-Shaloshayim-Nekudotayim.html): > > T_SHALOSHAYIM_NEKUDOTAYIM Changed that to Shalosh (as apparently the -ayim means "twice" (as in PAAM=2, AYIM=twice, NEKUDOT=dot, AYIM=twice)). Not that I claim to know very much

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Lorenzo Alberton
Matt Friedman wrote: Namespace <:: ClassName or Namespace <- ClassName or Namespace <: ClassName Unless I'm missing something these symbols should not conflict with other ones. I'm not sure if someone already mentioned it, but "<-" is not acceptable, since it means "less than the opposite of"

Re: AW: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Ilia Alshanetsky
mbneto wrote: > Ilia, > > I do not agree with this. Since there should be only bugfixes in RC > I should only test to see if the known problems are gone and there are > no regressions. Check if the NEW classe/function clashes with mine's > or PEAR's not! Some bug fixes may cause regressions in

Re: AW: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread mbneto
Ilia, I do not agree with this. Since there should be only bugfixes in RC I should only test to see if the known problems are gone and there are no regressions. Check if the NEW classe/function clashes with mine's or PEAR's not! > > You cannot expect folks to re-test everything with every ne

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Jani Taskinen
On Sat, 26 Nov 2005, Ilia Alshanetsky wrote: I'd prefer ::: over \ for a namespace operator, even though it is bordering on the "too-long" limit. Well, how often you think it's used in a script? If there will be namespaces, I'd prefer ::: too. --Jani -- PHP Internals - PHP Runti

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Jani Taskinen
On Sun, 27 Nov 2005, Zeev Suraski wrote: I'm not sold on reusing the break construct for that, since we're not really breaking, and I kind of like Ilia's "jump" idea. Another possibility would be reusing 'continue', which makes a bit more English sense, even though it's not very similar to co

Re: [PHP-DEV] Re: Labeled Breaks (not the G-word)

2005-11-27 Thread Zeev Suraski
Guys, Laughter has nothing to do with it. However, as discussed between those who attended the meeting in Paris, goto earned its bad connotations for a reason. It was agreed that providing a general-purpose C-goto equivalent is not a good idea because it *will* very quickly lead to spaghetti

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-27 Thread Markus Fischer
Kevin Brown wrote: The only scripts that would break (far from "trillions") here would be those where you had a space-less ternary statement comparing two constants (NOT namespace constants -- they don't even exist yet), as in the following case: define('foo','odd'); define('bar','even'); $var =

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Marcus Boerger
Hello Jacques, can we name it T_WTF_COLON Sunday, November 27, 2005, 12:05:19 PM, you wrote: > Sara Golemon wrote: >> For the record, I vote for ::: >> T_??_NEKUDOTAYIM >> (Sorry, couldn't find a transliteration of "triple") >> > Sean reckons that it's Shaloshayim > (http://blog.phpdoc

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Jacques Marneweck
Sara Golemon wrote: > For the record, I vote for ::: > T_מְשֻׁלָּשׁ_NEKUDOTAYIM > (Sorry, couldn't find a transliteration of "triple") > Sean reckons that it's Shaloshayim (http://blog.phpdoc.info/archives/27-+1-for-Shaloshayim-Nekudotayim.html): T_SHALOSHAYIM_NEKUDOTAYIM Regards --jm > -Sara > >

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Jacques Marneweck
Oliver Grätz wrote: > OK, you requested for it! *g* > > OLLi > > > > > Namespace Operators > > Name

Re: [PHP-DEV] PDM Meeting Notes

2005-11-27 Thread Marcus Boerger
Hello Sara, Sunday, November 27, 2005, 3:39:40 AM, you wrote: >> How PHP chokes on > silly. There's a patch here to fix it, >> http://news.php.net/php.internals/18493, some proof of why it's a problem, >> http://news.php.net/php.internals/18496, and the "bogus" (yeah, right) bug >> report, http:

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Jacques Marneweck
Mike Robinson wrote: > They all look horrible. > The idea of namespaces scrapped altogether is a good solution. :) > > Best, > > Mike Robinson > Namespaces would be quite useful when using PEAR classes and custom classes where you require certain functionality from say a PEAR::Date and Derick's

[PHP-DEV] Re: Solution to date issue in 5.1

2005-11-27 Thread Lukas Smith
Ilia Alshanetsky wrote: The attached patch is a possible solution to the date *crisis*, it renames the class to PhpDate to avoid any namespace conflicts with pear or custom user classes called date. I do not think it makes sense for PHP to start prefixing internal classes with PHP. We just nee

Re: [PHP-DEV] CVS Account Request: benzie31

2005-11-27 Thread Jacques Marneweck
ben zie wrote: > i want to get ext/oracle > Hi Ben, You do not require a CVS account to "get" ext/oracle. Take a look at http://www.php.net/anoncvs.php for getting the latest PHP source code. Regards --jm -- Jacques Marneweck http://www.powertrip.co.za/blog/ -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Stanislav Malyshev
MCK>>The -> suggestion if practicable seems the most intuitively correct MCK>>to me. Yes, with one exception that this already has a meaning and it has nothing to do with namespaces. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -

Re: [PHP-DEV] about PECL and PHP 5.1

2005-11-27 Thread Lukas Smith
Wez Furlong wrote: Agreed, the PECL bundle is still very useful to maintain for each release. (as is the debug pack, so that debugging crashes becomes a possibility for releases). Shouldnt we then fast track the binary support in the PEAR installer? It should be enough to commit all your code,