Re: Usage of class constants inside strings and heredocs [message #170498 is a reply to message #170490] |
Wed, 03 November 2010 09:40 |
Giuseppe Sacco
Messages: 5 Registered: November 2010
Karma:
|
Junior Member |
|
|
Álvaro,
thanks for your prompt answer. I understood what you say about class
constants and I understood that it is not possible to use class
constants in heredoc or string text. I just would like to write that
in my opinion this would really improve readability: I need class
constants in order to define strings that should never be changeable,
and I think heredoc are wonderful for creating long and indented text.
I mean, I just wrote a very simple query, but real queries use as much
as 20 table fields.
Using sprintf and such, add runtime complexity for dinamically create
a static string.
Is there any other *static* way?
Thanks a lot,
Giuseppe Sacco
|
|
|