Re: [RFC] Shorter attribute syntax

From: Date: Thu, 04 Jun 2020 10:39:22 +0000
Subject: Re: [RFC] Shorter attribute syntax
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-110363@lists.php.net to get a copy of this message
Hi all,

I understand that is better to replicate syntax from another language, but the only valid syntax
seems to be the current one (Hack's <<>>).

The proposed syntax in this RFC is a new syntax that is not directly used in another language, but
an adaptation, and it includes a little BC break.

As we are creating new syntax, why not simply use another single symbol? Here are some examples:

*Deprecated
%Deprecated
>Deprecated
&Deprecated
function foo() { }

I'm not 100% sure if all this symbols could by used in that context, but I think I prefer any
of them rather than a double symbol.

Would it be possible to add a multioption vote and let people choose?

Regards,
Iván Arias.



Thread (41 messages)

« previous php.internals (#110363) next »