Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-04-01 Thread Stanislav Malyshev
2008? If there is a majority for the syntax until then, I will commit the patch and the test cases. I think if we want to have a vote it should be explicitly announced as a vote, shouldn't it? -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-04-01 Thread Stanislav Malyshev
As the original proposer of nowdocs, I also give it a +1 for consistency! "Consistency" must be the most over-used word on the list lately :) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Run

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Lars Strojny
Hi Felipe, ..., Am Freitag, den 28.03.2008, 20:28 -0300 schrieb Felipe Pena: > 2008/3/24, Marcus Boerger <[EMAIL PROTECTED]>: [...] > Here's a possible fix: > - http://felipe.ath.cx/diff/double-quote-heredoc.diff Tested your patch a bit further and it seems to work fine. Created a few other test

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Pierre Joye
Hi Lars, On Sat, Mar 22, 2008 at 9:17 PM, Lars Strojny <[EMAIL PROTECTED]> wrote: > Hi, > > as we introduce NOWDOC in 5.3 it would be logical to allow a double > quoted syntax sister of NOWDOC which acts as HEREDOC (same as for $var = > "$var" vs $var = '$var'). Currently we have the following

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Lars Strojny
Hi Felipe, Am Freitag, den 28.03.2008, 20:28 -0300 schrieb Felipe Pena: > 2008/3/24, Marcus Boerger <[EMAIL PROTECTED]>: [...] > +1 for same reason. > > However, the patch is wrong, see below: > > $foo = 'foobar'; > > $test = <<<"a > $foo > a; > > var_dump($test); > /* > string(7) "foobar > "

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-28 Thread Felipe Pena
2008/3/24, Marcus Boerger <[EMAIL PROTECTED]>: > Hello Lars, > > to me this makes pretty much sense on a second glance as it perfectly > reflects what our string would do. And for someone learning 'NOWDOC', > using "HEREDOC" seems just natural. > So I am all +1 > Consistency and satisfying ex

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-28 Thread Richard Quadling
On 28/03/2008, Gwynne Raskind <[EMAIL PROTECTED]> wrote: > On Mar 24, 2008, at 8:59 AM, Marcus Boerger wrote: > > Hello Lars, > > > > to me this makes pretty much sense on a second glance as it perfectly > > reflects what our string would do. And for someone learning 'NOWDOC', > > using "HERE

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-28 Thread Gwynne Raskind
On Mar 24, 2008, at 8:59 AM, Marcus Boerger wrote: Hello Lars, to me this makes pretty much sense on a second glance as it perfectly reflects what our string would do. And for someone learning 'NOWDOC', using "HEREDOC" seems just natural. So I am all +1 Consistency and satisfying expectations r

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-28 Thread Lars Strojny
Hi, Am Samstag, den 22.03.2008, 21:17 +0100 schrieb Lars Strojny: > [RFC] Double quoted NOWDOC is HEREDOC I've added this RFC to the Wiki too: http://wiki.php.net/rfc/heredoc-with-double-quotes cu, Lars signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-24 Thread Marcus Boerger
Hello Lars, to me this makes pretty much sense on a second glance as it perfectly reflects what our string would do. And for someone learning 'NOWDOC', using "HEREDOC" seems just natural. So I am all +1 Consistency and satisfying expectations rocks! marcus Saturday, March 22, 2008, 9:17:27 PM,

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-24 Thread Lars Strojny
Hi Steph, Am Sonntag, den 23.03.2008, 01:58 + schrieb Steph Fox: > > Just one. Why? We have double and single quotes for variable assignments. On of the reasons we use single quotes for NOWDOC was because it is as in variable assignments. If we follow that argument, there is no reason why $

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-23 Thread Hannes Magnusson
On Sat, Mar 22, 2008 at 9:17 PM, Lars Strojny <[EMAIL PROTECTED]> wrote: > > $str = <<<"LABEL" > $var > LABEL; -1 no please -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-22 Thread Edward Z. Yang
Steph Fox wrote: > Just one. Why? Probably to be consistent. Let's say a hypothetical user learns to use NOWDOC before HEREDOC: which syntax are they more likely to use; 'NOWDOC' or "HEREDOC". However, I too am -1 because this smacks of the Perl philosophy of "more than one to do things", which,

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-22 Thread Steph Fox
Hi Lars, oh wow no <<< again... == as we introduce NOWDOC in 5.3 it would be logical to allow a double quoted syntax sister of NOWDOC which acts as HEREDOC (same as for $var = "$var" vs $var = '$var'). Currently we have the following options: $var = "Hello world"; $str = <

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-22 Thread Stanislav Malyshev
NOWDOC and $var would be used literally. The following patch adds a third version: $str = <<<"LABEL" $var LABEL; -1, we already have syntax for that. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals

[PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-22 Thread Lars Strojny
Hi, as we introduce NOWDOC in 5.3 it would be logical to allow a double quoted syntax sister of NOWDOC which acts as HEREDOC (same as for $var = "$var" vs $var = '$var'). Currently we have the following options: $var = "Hello world"; $str = <