[Oc-pm] spaces in perl6

Erick Jordan erickfjordan at gmail.com
Tue Oct 31 15:33:09 PDT 2017


I found this explanation on the perl6 website:

https://docs.perl6.org/language/5to6-nutshell#Whitespace



On Tue, Oct 31, 2017 at 11:51 AM Bob Mathews <bobmath11 at icloud.com> wrote:

> 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
>
> _______________________________________________
> Oc-pm mailing list
> Oc-pm at pm.org
> http://mail.pm.org/mailman/listinfo/oc-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/oc-pm/attachments/20171031/32f37910/attachment.html>


More information about the Oc-pm mailing list