Incidentally, just like mathematically (albeit slightly loosely) an element of a set can be thought of as a function from any singleton, would it be possible for Perl 6 to provide a fast (under the syntactical point of view) way to promote a term to a function returning it?

What's wrong with the perl 5:

sub mysub($x) {
        return sub { $x };  # the sub{$x} is the construct
}

?

David



Reply via email to