>> Larry Wall once warned that the "return..." syntax may be removed at some 
>> point.
> "return..." is a common idiom in many programming languages, and
> keeping it around might help programmers ease their transition to
> raku/perl6. So I'd hate to see "return" go away--at least for the
> foreseeable future.

I don't see 'return' disappearing.

What was meant, I think, is the "returns" syntax:


sub a() returns Str { "foo" }

vs

sub a(--> Str) { "foo" }

Reply via email to