develooper Front page | perl.perl6.language | Postings from July 2005

Curious use of .assuming in S06

Thread Next
Autrijus Tang
July 29, 2005 12:06
Curious use of .assuming in S06
Message ID:
In S06's Currying section, there are some strange looking examples:

    &textfrom := &substr.assuming(:str($text) :len(Inf));

    &textfrom := &substr.assuming:str($text):len(Inf);

    &woof ::= &bark:(Dog).assuming :pitch<low>;

Why is it allowed to omit comma between adverbial pairs, and even
omit parens around method call arguments?  Is .assuming a special form?

This is S06-specific; neither A06 nor E06 exhibits this syntax.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About