[Oc-pm] spaces in perl6

Bob Mathews bobmath11 at icloud.com
Tue Oct 31 11:50:44 PDT 2017


> On Oct 31, 2017, at 11:43 AM, Ramana V Mokkapati <mvr707 at gmail.com> wrote:
> I did not see any inconsistency ...

It seems to be consistently stupid. This bites other postfix operators as well. Take the example at the end of chapter 4.

sub postfix:<Factorial>($n) {
   [*] 1..$n
}
say 5Factorial; # 120

You can't put a space between 5 and Factorial. (You can put a backslash and then a space, if you want.)

The part that amuses me is that this is prefaced by the statement:

> There is no intention in Perl 6 design to make user-defined operators cryptic.


 -bob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/oc-pm/attachments/20171031/af2c617a/attachment.html>


More information about the Oc-pm mailing list