On 2020-01-23 06:15, Elizabeth Mattijsen wrote:
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" }


I would like to see "returns" and "-->" expanded
to cover multiple variables.

RFE: returns for multiple variables #152
https://github.com/Raku/problem-solving/issues/152

Reply via email to