in reply to Re: Thoughts on Exegesis 7
in thread Thoughts on Exegesis 7

Ok. So, how does the Perl6 compiler distinguish << and >> between their bitshift and quoting modes?

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Re: Thoughts on Exegesis 7
by TimToady (Parson) on Feb 29, 2004 at 02:09 UTC
    The bitops have all been re-Huffman-coded because they're not as frequently used as the things we'll be using their operators for. Plus we've resolved the ambiguites by regularizing all the bitops with a prefix that indicates whether you mean a numeric bitop, and string bitop, or a boolean bitop. So << has been respelled +< and >> is now +>.

    As for here docs, those now require quotes, so the only amibguity is if you happen to want to use something like <<"stuff">>, in which case you'd have to say << "stuff" >> instead.

    Much work has gone into re-engineering the operators for Perl 6. You might be interested in Synopsis 3, which is coming out real soon, by Luke Palmer. (In fact, it would have been out already except that Damian's E7 nudged it aside.) Luke's been doing us the favor of going back and writing Synopses for those earlier Apocalypses that didn't ever have one. And the intent is to leave the Apocalypses "as is" as historical documents full of my old speculations and goofs, while we keep the Synopses up-to-date with my latest speculations and goofs.