> On Mar 10, 2020, at 05:54, Rowan Tommins <rowan.coll...@gmail.com> wrote:
> 
> On Tue, 10 Mar 2020 at 01:02, Mike Schinkel <m...@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: signature.asc
Description: Message signed with OpenPGP

Reply via email to