Re: [RFC] [Discussion] Shorter Attribute Syntax Change
| From: | Côme Chilliet | Date: | Tue, 04 Aug 2020 07:31:10 +0000 |
| Subject: | Re: [RFC] [Discussion] Shorter Attribute Syntax Change | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111307@lists.php.net to get a copy of this message | ||
Le Tue, 28 Jul 2020 17:57:34 +0000,
Theodore Brown <theodorejb@outlook.com> a écrit :
> Rust chose to use #[] even though it wasn't used by any other language.
> Does that make it a bad fit for Rust? No. But just because Rust uses
> a syntax also doesn't mean it's a good fit for PHP.
For those which like me do not know Rust, I checked and it appears that "#" is
only used for attributes in Rust, and is not a comment starter.
So that explains why it makes sense for Rust to use this. But it still feels
like a really bad idea to me to mix comment and code in PHP.