Larry Wall wrote:
> We've pretty much settled on &div.prebind(y => 2) as the most informative and
> least conflictive.
and I'll demonstrate it in my next Conway Channel diary entry later today.
Damian
We've pretty much settled on &div.prebind(y => 2) as the most informative and
least conflictive.
Larry
Luke Palmer:
# Wait, does this have any meaning?:
#
# my &half = \div(y => 2)
Call div() with the named parameter 'y' equal to 2, take a reference to
its return value, and store that in &half.
# Is backslash even a valid operator for reference anymore? If so, this
# makes sense to me.
I'm s
On Tue, 28 May 2002, Glenn Linderman wrote:
> "with" reads very nicely, but we already have a perl6 precedent,
> perhaps... how about reusing "when" as the method name for currying?
> This may not curry favor with Damian, but I suggest
>
> my & half = & div.when(y => 2);
>
> would declare th
Larry Wall wrote:
>
> If we're going to make it a method, however, it's possible that "curry"
> is the wrong popular name, despite its being the correct technical name.
> There's really nothing about the word "curry" that suggest partial
> binding to the casual reader. Perhaps we really want som
3uke Palmer writes:
: Perhaps if it's generated with placeholders, the C<.curry> would be
: implicit. That way we can stay terse when the situation is simple. Like
: with Damian's C...C example. When I'm writing scripts, I
: don't want to type those 6 characters, but if I'm doing structured
Angel Faus writes:
: Hi,
:
: I was reading Damian's new excellent diary entry in which he explains the
: new currying syntax for Perl6.
:
: (For the lazy ones it's reachable at
: http://www.yetanother.org/damian/diary_latest.html)
:
: This new feature allows to partially fill place-holder funct
On Sat, 18 May 2002, Angel Faus wrote:
> ...curry example...
> But I am not sure I like the syntax. The problems I see are:
>
> - You only can curry placeholder-generated functions. So if you intend to
> make a function curryiable, you are forced to use place-holders, even if
> that's not the cle