On 30.08.2014 23:26, Robert Williams wrote:
> If the syntax of heredocs/nowdocs is to be loosened, the biggest aspect I’d
> like to see addressed is indentation. I can certainly see how it would be
> nice to loosen the restrictions around the post-closing-token newline to
> allow easier use in p
On 31 Aug, 2014, at 6:12 am, Stas Malyshev wrote:
> Hi!
>
>> There’s no real objective measure with which I can answer such
>> questions :)
>>
>> The closest I could come to a rebuttal is if there’s no real need to
>> make the syntax so restrictive, why not make it less restrictive?
>
> "Why
On 30/08/2014 22:26, Robert Williams wrote:
function foo() {
$string = <<<
THEEND
This is the document text. Any
whitespace appearing in a column
that’s before the starting token
is automatically ignored for all
lines.
THEEND;
I like this idea,
Hi!
> There’s no real objective measure with which I can answer such
> questions :)
>
> The closest I could come to a rebuttal is if there’s no real need to
> make the syntax so restrictive, why not make it less restrictive?
"Why not" is usually not a very good reason for a change in the languag
If the syntax of heredocs/nowdocs is to be loosened, the biggest aspect I’d
like to see addressed is indentation. I can certainly see how it would be nice
to loosen the restrictions around the post-closing-token newline to allow
easier use in places like array definitions, but, I’ve never run in
Hi,
Manual: "Also, the identifier must follow the same naming rules as any
other label in PHP: it must contain only alphanumeric characters and
underscores, and must start with a non-digit character or underscore."
RFC: "Ends a quotation when the closing identifier is followed by a
newline o
On Sat, 2014-08-30 at 18:33 +0800, Tjerk Meesters wrote:
>
> The closest I could come to a rebuttal is if there’s no real need to
> make the syntax so restrictive, why not make it less restrictive?
>
This is a good criterion when adding a new syntax. A change to existing
syntax features needs fur
On Sat, Aug 30, 2014 at 2:33 AM, Tjerk Meesters
wrote:
> Hi internals,
>
> I would like to propose a few changes to our heredoc / nowdoc scanner to
> make it less awkward to use inside other constructs.
>
> https://wiki.php.net/rfc/heredoc-scanner-loosening
>
> Let me know your thoughts :)
>
+1
Hi Stas,
On 30 Aug, 2014, at 2:08 pm, Stas Malyshev wrote:
> Hi!
>
>> I would like to propose a few changes to our heredoc / nowdoc scanner to
>> make it less awkward to use inside other constructs.
>>
>> https://wiki.php.net/rfc/heredoc-scanner-loosening
>>
>> Let me know your thoughts :)
>
Hi!
> I would like to propose a few changes to our heredoc / nowdoc scanner to make
> it less awkward to use inside other constructs.
>
> https://wiki.php.net/rfc/heredoc-scanner-loosening
>
> Let me know your thoughts :)
With this proposal, you will not be able to use the delimiter inside the
10 matches
Mail list logo