Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-13 Thread Andrei Zmievski
Like case-sensitivity. -Andrei P.S. Joking, I am _just_ JOKING! Have a sense of humor, people. On Mar 12, 2006, at 8:50 AM, Pierre wrote: On 3/12/06, Steph Fox [EMAIL PROTECTED] wrote: Lukas, that's extremely odd. Check history! (when most of the core team agreed on jump originally, for

RE: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Dmitry Stogov
; internals@lists.php.net Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion) Hello Wez, just to continue on this nice argument: Jump reminds me of the worst addition to c ever: longjump. marcus Friday, March 10, 2006, 2:36:56 PM, you wrote: My vote is +1 for goto

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Marcus Boerger
Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion) Hello Wez, just to continue on this nice argument: Jump reminds me of the worst addition to c ever: longjump. marcus Friday, March 10, 2006, 2:36:56 PM, you wrote: My vote is +1 for goto, just because that largely

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Steph Fox
Dmitry, maybe I have overlooked a single post, but I have yet to see a single post favoring jump over goto. The common decision is here and it is goto. Lukas, that's extremely odd. Check history! (when most of the core team agreed on jump originally, for a start). I've seen five very vocal

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Pierre
On 3/12/06, Steph Fox [EMAIL PROTECTED] wrote: Lukas, that's extremely odd. Check history! (when most of the core team agreed on jump originally, for a start). I've seen five very vocal pro 'goto's here and NO good reasons given for it. There are several good reasons against. The result

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Andi Gutmans
:22 AM To: Wez Furlong Cc: Dmitry Stogov; internals@lists.php.net Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion) Hello Wez, just to continue on this nice argument: Jump reminds me of the worst addition to c ever: longjump. marcus Friday, March 10, 2006, 2:36:56 PM, you

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Steph Fox
Lukas, that's extremely odd. Check history! (when most of the core team agreed on jump originally, for a start). I've seen five very vocal pro 'goto's here and NO good reasons given for it. There are several good reasons against. The result of the vote in this thread is clear. No matter what

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Ilia Alshanetsky
Let's just call it goto and be done with it. It seems that for the people who will use this feature goto name will cause the least amount of WTF. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Marcus Boerger
Hello bertrand, just to clearify this, we don't do voting here becuase it is impossible to bring a majority of php users here or decide who is important and so on. Thus we are only doing surveys here even if called voting. And i assume that all people on this list have better things to do than

RE: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-12 Thread Dmitry Stogov
Seems the majority prefers goto. I'll change jump to goto tomorrow in case of no serious objections. Thanks. Dmitry. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-10 Thread Wez Furlong
My vote is +1 for goto, just because that largely describes what it does and how it is used. I don't mind if it winds up being called jump, I just think it will be easier for people to find it when they need it if it is called 'goto'. 'goto' also comes with all the usual anti-goto propaganda

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-10 Thread Bart de Boer
+1 for goto -1 for jump Wez Furlong wrote: My vote is +1 for goto, just because that largely describes what it does and how it is used. I don't mind if it winds up being called jump, I just think it will be easier for people to find it when they need it if it is called 'goto'. 'goto' also

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-10 Thread Marcus Boerger
Hello Wez, just to continue on this nice argument: Jump reminds me of the worst addition to c ever: longjump. marcus Friday, March 10, 2006, 2:36:56 PM, you wrote: My vote is +1 for goto, just because that largely describes what it does and how it is used. I don't mind if it winds up

[PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Dmitry Stogov
Hi, The solution (2) - goto only is the winner. So in case of no serious objections, I'll commit the goto.diff patch in 24 hour. The last question: What do you thin about Andi's solution about using jump instead of goto? It may make sense, because it is not a full analog of C's goto statement.

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Derick Rethans
On Thu, 9 Mar 2006, Dmitry Stogov wrote: Hi, The solution (2) - goto only is the winner. So in case of no serious objections, I'll commit the goto.diff patch in 24 hour. The last question: What do you thin about Andi's solution about using jump instead of goto? I don't really mind...

RE: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Dmitry Stogov
I am indifferent - goto or jump, but may be others don't. Thanks. Dmitry. -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 11:09 AM To: Dmitry Stogov Cc: internals@lists.php.net Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion) On Thu, 9 Mar 2006, Dmitry Stogov wrote: Hi, The solution (2) - goto only is the winner. So in case of no serious objections, I'll commit the goto.diff patch in 24 hour. The last question: What do you thin about Andi's solution

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
. -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 11:09 AM To: Dmitry Stogov Cc: internals@lists.php.net Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion) On Thu, 9 Mar 2006, Dmitry Stogov wrote: Hi, The solution (2

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Jon Dowland
At 1141902889, Andrey Hristov wrote: sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading. -- Jon Dowland

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Jon Dowland wrote: At 1141902889, Andrey Hristov wrote: sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading.

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread João Cruz Morais
At 10:03 09/03/2006, Dmitry Stogov wrote: The last question: What do you thin about Andi's solution about using jump instead of goto? Great! Yet another keyword. PHP keeps surprising the world... It may make sense, because it is not a full analog of C's goto statement. It is a limited goto.

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-09 Thread Xuefer
On 3/9/06, Steph Fox [EMAIL PROTECTED] wrote: Please, Xuefer! Your vote was already recorded, shhh! i wasn't to vote more than once. it's same vote but with a bit different syntax changed. oh well, the result is out, this is only my explaination.

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-08 Thread Nuno Lopes
On 7.3.2006 15:44 Uhr, Steph Fox wrote: 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing Sorry for the noise. I was told to vote. Meaning, I don't care, never had a use for GOTO, but if the caring majority thinks, it's needed, why not :) chregu

RE: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-08 Thread Ford, Mike
On 07 March 2006 09:28, Dmitry Stogov wrote: Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing 1) +0.25 2) -1e38 3) +1e38 4) -infinity Or, in other words, I want labelled break, and I don't want to have to emulate it with

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-08 Thread Xuefer
If the Java-like syntax is seen as confusing, what about, as in some other languages, interpolating the label into the for/foreach/while statement: for () label {...} or for label (...) {...} a. label: for () { break label; } AND label: { for () { break label; } } (see

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-08 Thread Steph Fox
Please, Xuefer! Your vote was already recorded, shhh! - Original Message - From: Xuefer [EMAIL PROTECTED] To: Ford, Mike [EMAIL PROTECTED] Cc: Dmitry Stogov [EMAIL PROTECTED]; internals@lists.php.net Sent: Thursday, March 09, 2006 5:19 AM Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL

[PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Dmitry Stogov
Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing My vote: (1) +0.5, (4) +0.5 Thanks. Dmitry.

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Sascha Schumann
On Tue, 7 Mar 2006, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Edin Kadribasic
Dmitry Stogov wrote: Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing 1) +1 Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Stanislav Malyshev
DS1) goto and break label DS2) goto only (like C) DS3) break label only (like Java) DS4) nothing 1) +0.5 2) -1 3) +1 -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Derick Rethans
On Tue, 7 Mar 2006, Sascha Schumann wrote: On Tue, 7 Mar 2006, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Antony Dovgal
On 07.03.2006 11:28, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing 2) +0.5

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Wez Furlong
On 3/7/06, Dmitry Stogov [EMAIL PROTECTED] wrote: 1) goto and break label +1 I'm happy with goto, but don't mind getting labelled breaks for free; labels are better than numbers. 2) goto only (like C) +1 3) break label only (like Java) +0.5, but only if we don't have goto --Wez. -- PHP

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Xuefer
On 3/7/06, Dmitry Stogov [EMAIL PROTECTED] wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4)

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Hartmut Holzgraefe
Sascha Schumann wrote: 5) goto, fowarding-jumping only. which would more or less make it useless for state machine stuff, right? -- Hartmut Holzgraefe, Senior Support Engineer. MySQL AB, www.mysql.com Join me at MySQL's 2006 Users Conference, April 24-27!

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Ilia Alshanetsky
Dmitry Stogov wrote: 1) goto and break label +1 2) goto only (like C) +1 3) break label only (like Java) -1 Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Steph Fox
1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing Thanks for giving this a final chance, Dmitry. 1) +0.5 3) +1 - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Andi Gutmans
I'm with Rasmus on the break label stuff. Although it's not confusing to me, I got convinced quickly that it'll be confusing to the wider audience. So big -1 from me for (2) (1). I think we should either stick with nothing or go to a full goto (without jumping into scopes of course). Only

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Edin Kadribasic
Andi Gutmans wrote: I'm with Rasmus on the break label stuff. Although it's not confusing to me, I got convinced quickly that it'll be confusing to the wider audience. So big -1 from me for (2) (1). From your comment bellow I figure you're for option 2, right? Edin I think we should

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Andi Gutmans
Yes 2. Sorrry At 07:28 AM 3/7/2006, Edin Kadribasic wrote: Andi Gutmans wrote: I'm with Rasmus on the break label stuff. Although it's not confusing to me, I got convinced quickly that it'll be confusing to the wider audience. So big -1 from me for (2) (1). From your comment bellow I

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Rob Richards
Dmitry Stogov wrote: 1) goto and break label +0.5 2) goto only (like C) +1 3) break label only (like Java) -1 Rob -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Mike Lively
On Tue, 2006-03-07 at 12:28 +0300, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java)

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Magnus Määttä
Hi, On Tuesday 07 March 2006 10:28, Dmitry Stogov wrote: 1) goto and break label +1 2) goto only (like C) +1 3) break label only (like Java) -1 4) nothing -1 Regards, Magnus Currently 'a bit' inactive Määttä -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Andrei Zmievski
(2) +1e10 On Mar 7, 2006, at 1:28 AM, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java)

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Robert Cummings
On Tue, 2006-03-07 at 04:28, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4)

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Andi Gutmans
At 09:50 AM 3/7/2006, Robert Cummings wrote: On Tue, 2006-03-07 at 04:28, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label 2) goto only

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Robert Cummings
On Tue, 2006-03-07 at 12:50, Andi Gutmans wrote: At 09:50 AM 3/7/2006, Robert Cummings wrote: On Tue, 2006-03-07 at 04:28, Dmitry Stogov wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch.

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread John Coggeshall
if($choice == 1) { goto bad; } else if ($choice == 2) { goto good; } else if ($choice == 3) { goto bad; } else if ($choice == 4) { goto good; } good: $vote++; bad: return; On Tue, 2006-03-07 at 12:50 -0500, Robert Cummings wrote: On Tue,

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Robert Cummings
On Tue, 2006-03-07 at 12:58, John Coggeshall wrote: if($choice == 1) { goto bad; } else if ($choice == 2) { goto good; } else if ($choice == 3) { goto bad; } else if ($choice == 4) { goto good; } good: $vote++; bad: return; I don't remember, but

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Steph Fox
07, 2006 7:58 PM Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL if($choice == 1) { goto bad; } else if ($choice == 2) { goto good; } else if ($choice == 3) { goto bad; } else if ($choice == 4) { goto good; } good: $vote++; bad: return; On Tue, 2006-03-07 at 12:50 -0500, Robert Cummings wrote

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Johannes Schlueter
Hi, On Tuesday 07 March 2006 19:14, Robert Cummings wrote: I don't remember, but I think Sarah Golemon allowed for it in one of her patches way back: ?php $map = array ( 1 = 'bad', 2 = 'good', 3 = 'bad', 4 = 'acceptable', ); goto $map[$choice]; NOOO - If we add goto

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Sara Golemon
I don't remember, but I think Sarah Golemon allowed for it in one of her patches way back: goto $map[$choice]; Yes, and targeting dynamic labels was one of the first big sacrifices on the altar of compromise. Current implementation options use static, compile-time resolved labels only.

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Derick Rethans
On Tue, 7 Mar 2006, Steph Fox wrote: I took that as (2) +1, (4) +1. Current raw totals amongst those who contribute to the PHP core: (1) +5.5, (2) +9.5, (3) +0, (4) 2 Still to vote: Derick, Marcus, George, Sascha, Hartmut, Chregu, Johannes, Sebastian, Stefan, apologies if I missed any

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Marcus Boerger
Hello Dmitry, Tuesday, March 7, 2006, 10:28:27 AM, you wrote: Hi, Because of some confused people I reverted break label patch and post it for discussion once again together with GOTO patch. Please reviw and vote. 1) goto and break label -1e307 2) goto only (like C) -1e307 3) break

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Robert Cummings
On Tue, 2006-03-07 at 13:52, Sara Golemon wrote: I don't remember, but I think Sarah Golemon allowed for it in one of her patches way back: goto $map[$choice]; Yes, and targeting dynamic labels was one of the first big sacrifices on the altar of compromise. Current implementation

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Hartmut Holzgraefe
Steph Fox wrote: Still to vote: Derick, Marcus, George, Sascha, Hartmut, Chregu, Johannes, Sebastian, Stefan, apologies if I missed any names here. 1) -1 2) +1 3) +.5 4) -0 -- Hartmut Holzgraefe, Senior Support Engineer. MySQL AB, www.mysql.com Join me at MySQL's

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Johannes Schlueter
Hi, On Tuesday 07 March 2006 19:18, Steph Fox wrote: Current raw totals amongst those who contribute to the PHP core: (1) +5.5, (2) +9.5, (3) +0, (4) 2 Still to vote: Derick, Marcus, George, Sascha, Hartmut, Chregu, Johannes, Sebastian, Stefan, apologies if I missed any names here. Alright,

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Christian Stocker
On 7.3.2006 15:44 Uhr, Steph Fox wrote: 1) goto and break label 2) goto only (like C) 3) break label only (like Java) 4) nothing In Sean's words: 1) 0 2) 0 3) 0 4) 0 Sorry for the noise. I was told to vote. Meaning, I don't care, never had a use for GOTO, but if the caring

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Sebastian Bergmann
Christian Stocker schrieb: 1) 0 2) 0 3) 0 4) 0 Sorry for the noise. I was told to vote. Meaning, I don't care, never had a use for GOTO, but if the caring majority thinks, it's needed, why not :) Same here. -- Sebastian Bergmann http://www.sebastian-bergmann.de/