Re: Anonymous Subroutine Names

2003-04-12 Thread Allison Randal
Smylers wrote: > I had been assuming that Perl 6 would continue the tradition that > anonymous subroutines don't have names. > > 'Synopsis 6' contains this line: > > On an anonymous subroutine, any return type can only go after the > name: > > Which "name" would that be? > > The example giv

Anonymous Subroutine Names

2003-04-12 Thread Smylers
I had been assuming that Perl 6 would continue the tradition that anonymous subroutines don't have names. 'Synopsis 6' contains this line: On an anonymous subroutine, any return type can only go after the name: Which "name" would that be? The example given: $lay = sub returns Egg {...}

Re: Conditional Cs?

2003-04-12 Thread Smylers
Piers Cawley writes: > Smylers <[EMAIL PROTECTED]> writes: > > > Paul writes: > > > > > My P7 syntax is still weak, though. Maybe > > > > > > given big_calc() { return $_ if $_ } > > > > Using C works in Perl 5. Is there anything preventing this > > working in Perl 6: > > > > for big_calc()