Re: [RFC] Attributes v2

From: Date: Tue, 10 Mar 2020 16:43:19 +0000
Subject: Re: [RFC] Attributes v2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-108959@lists.php.net to get a copy of this message
> On Mar 10, 2020, at 05:54, Rowan Tommins <rowan.collins@gmail.com> wrote: > > On Tue, 10 Mar 2020 at 01:02, Mike Schinkel <mike@newclarity.net> wrote: > >> >> I find angle brackets extremely hard to read >> > > > You're definitely not alone in disliking the syntax, but I think it > actually looks quite neat. It reminds me firstly of templating languages > which use {{foo}} for placeholders and/or keywords, and secondly of French > quote marks, «guillemets». It looks ugly in e-mails using variable-width > fonts, but that's not we're going to be writing code in every day. I quite like the relationship to Hack. Hack borrowed so much from PHP, and PHP, in turn, borrows back from Hack. Are spaces allowed in the brackets? If so, maybe that helps the readability? << A1(123), A2 >> class C { << A3(true, 100) >> public function __construct() { /* ... */ } << A4 >> public function doIt(): void { /* ... */ } } If spaces are allowed, I imagine that folks will adopt coding standards to aid in readability. Cheers, Ben

Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc
« previous php.internals (#108959) next »