Re: [RFC] Shorter Attribute Syntax Change RFC 0.2

From: Date: Thu, 06 Aug 2020 08:21:06 +0000
Subject: Re: [RFC] Shorter Attribute Syntax Change RFC 0.2
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-111354@lists.php.net to get a copy of this message
On Thu, 6 Aug 2020 at 07:40, Derick Rethans <derick@php.net> wrote: > On Wed, 5 Aug 2020, Rowan Tommins wrote: > > The confusing thing about this argument is that as soon as they have > > arguments, attributes will have an ending delimiter _whatever_ syntax > > we choose, because nobody has ever proposed removing the parentheses > > around the arguments. > > The syntax that would start it (@@) is not the same, or related to the > parenthesis that follow the attribut name ( () ). They are not linked, > as the ( in () is opening a 'context' and the ) in )) is closing it > again. This is not the ending syntax of '@@'. > I'm sorry, I don't understand what you mean here. Are you saying that there is some practical difference - for parsers, for human readers, or something else - between the grammars below? "@@", attribute-name, "(", expression-list, ")" vs "@(", attribute-name, "(", expression-list, "))" Regards, -- Rowan Tommins [IMSoP]

« previous php.internals (#111354) next »