On 11/10/05, Gaal Yahas <[EMAIL PROTECTED]> wrote:
> I'm a little bothered that this is consistent but (to me, at least)
> unintuitive. Testing methods on the topic is something people may want
> to do often: is there a way to hide away the control logic? I'm tempted
> to propose that when a ".method" is seen in the when expression, the
> whole thing should become a terminal if. Inconsistent but possibly what
> people want.
That all looks good but you don't realy want it to be just if there is
a .method in there. It would have to be more magical than that
becuase i might want to do something else.
given $num {
when > 5 { }
when < 5 { }
when == 5 {}
}
I'm not sure that can be done in a whay that makes sense but I would settle for
given $num {
when $_ > 5 { }
when $_ < 5 { }
when $_ == 5 {}
}
I'm pretty sure i've heard this discussed but checking S04/Switch
Statments doesn't make any mention of it. If it has been settled
could we get some doc updates?
--
--
__________
Eric Hodges