# Double quotes for NOWDOCS

- Thread: https://externals.io/message/35505
- Original archive: https://news-web.php.net/php.internals/35505
- Started by Lars Strojny on 2008-02-15T06:41:33+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #35505 — Lars Strojny — 2008-02-15T06:41:33+00:00

URL: https://externals.io/message/35505#35505

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

---

## #35508 — Lars Strojny — 2008-02-15T06:45:09+00:00

URL: https://externals.io/message/35505#35508 · In reply to: #35505

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.diff
> 
> cu, Lars

---

## #35512 — Dmitry Stogov — 2008-02-15T10:07:45+00:00

URL: https://externals.io/message/35505#35512 · In reply to: #35505

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.diff
> 
> cu, Lars

---

## #35528 — Lars Strojny — 2008-02-15T11:23:00+00:00

URL: https://externals.io/message/35505#35528 · In reply to: #35512

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

---

## #35532 — Dmitry Stogov — 2008-02-15T16:20:50+00:00

URL: https://externals.io/message/35505#35532 · In reply to: #35528

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:
> > […]
> 
> Puh, I'm not really sure about that. I guess this will be even more
> confusing.
> 
> cu, Lars
