Hi,
I know, I might be a bit late but I've played around with NOWDOCS and
one issue popped up instantly: it seems not really logical to me, why
only single quotes are allowed and I have the feeling a lot of users
will ask the same questions. The problem is, that we are used to the way
we define strings. Both variants are possible, single-quotes and double
quotes. Now we are going to use NOWDOCS and only single quotes are
allowed. I think allowing both would be a good idea, so here is the
patch:
http://lars.schokokeks.org/php/nowdocs_double_quotes-1.diff
cu, Lars
»Die Glorifizierung der prächtigen underdogs läuft auf
die des prächtigen Systems heraus, das sie dazu macht.«
-- Theodor W. Adorno, »Minima Moralia«: They, the people
Lars Strojny
Nießenstr. 36
51103 Cologne
Jabber/Mail: lars@strojny.net
Weblog: http://usrportage.de
Hi,
sorry for the manual duplicate. I had the feeling my mail from yesterday
evening was lost, as I could not find it in the sent folder again.
cu, Lars
Am Freitag, den 15.02.2008, 07:41 +0100 schrieb Lars Strojny:
Hi,
I know, I might be a bit late but I've played around with NOWDOCS and
one issue popped up instantly: it seems not really logical to me, why
only single quotes are allowed and I have the feeling a lot of users
will ask the same questions. The problem is, that we are used to the way
we define strings. Both variants are possible, single-quotes and double
quotes. Now we are going to use NOWDOCS and only single quotes are
allowed. I think allowing both would be a good idea, so here is the
patch:
http://lars.schokokeks.org/php/nowdocs_double_quotes-1.diffcu, Lars
the semantic of "NOWDOC with double quotes" should be the same as HEREDOC.
Dmitry.
Lars Strojny wrote:
Hi,
I know, I might be a bit late but I've played around with NOWDOCS and
one issue popped up instantly: it seems not really logical to me, why
only single quotes are allowed and I have the feeling a lot of users
will ask the same questions. The problem is, that we are used to the way
we define strings. Both variants are possible, single-quotes and double
quotes. Now we are going to use NOWDOCS and only single quotes are
allowed. I think allowing both would be a good idea, so here is the
patch:
http://lars.schokokeks.org/php/nowdocs_double_quotes-1.diffcu, Lars
Hi,
Am Freitag, den 15.02.2008, 13:07 +0300 schrieb Dmitry Stogov:
the semantic of "NOWDOC with double quotes" should be the same as HEREDOC.
Puh, I'm not really sure about that. I guess this will be even more
confusing.
cu, Lars
http://en.wikipedia.org/wiki/Here_document
See the Perl's HEREDOC definition.
Dmitry.
Lars Strojny wrote:
Hi,
Am Freitag, den 15.02.2008, 13:07 +0300 schrieb Dmitry Stogov:
the semantic of "NOWDOC with double quotes" should be the same as HEREDOC.
Puh, I'm not really sure about that. I guess this will be even more
confusing.cu, Lars