On Fri, Jul 29, 2005 at 12:53:03PM -0700, Brent 'Dax' Royal-Gordon wrote: > Autrijus Tang <[EMAIL PROTECTED]> wrote: > > 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? > > Isn't this just another form of the syntactic rule that gives us > @array.grep:{ ... } ?
I thought that only applies to adverbial blocks, not arbitary adverbial (named) pairs. Hm, S04 uses this: leave :from(Loop) :label<LINE> <== 1,2,3; So maybe this is as intended? (If so, tests welcome. :-)) Thanks, /Autrijus/
pgptQmKblgnJL.pgp
Description: PGP signature