On Tue, 30 Nov 2004, David Christensen wrote:

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
}

?
                                                ^^^^
                                                ^^^^

Michele
--
The amount of repetition repetition isn't that great. - Ignacy Sawicki in comp.text.tex
thread "Bug in FeynMF's Queues?"

Reply via email to