On 2/24/06, Damian Conway <[EMAIL PROTECTED]> wrote: > No. One of the available TRAITS is C<returns RETTYPE>. So you can always > specify a "postfix" return type, even without a declarator: > > sub data() returns Str {...} > > The declarator is only needed if you want to "prefix" your return type > (presumably because you're pining for C/C++ ;-): > > our Str sub data() {...}
Didn't we decide that: our Str sub foo() {...} Was equivalent to: our sub foo(--> Str) {...} But not to: our sub foo() returns Str {...} ? Come to think of it, that seems backwards. After all, aren't: my Foo $x; my $x of Foo; Equivalent? Come to think of it, it's probably a bad idea to have a distinction at all. Luke