Re: Thoughts on constancy/currying

2001-11-12 Thread Peter Haworth
On Fri, 9 Nov 2001 09:08:04 -0800 (PST), Larry Wall wrote: > Piers Cawley writes: > : sub assert_with_func (&^sub is constant, $^expected is constant, > : $^got, $message) > : { > : &^sub($expected, $got) or die $message || $default_message; > : } > :

Re: Thoughts on constancy/currying

2001-11-09 Thread Larry Wall
Piers Cawley writes: : If currying magic works in subroutine parameter strings then you can : just do : : sub assert_with_func (&^sub is constant, $^expected is constant, : $^got, $message) : { : &^sub($expected, $got) or die $message || $default_message

Re: Thoughts on constancy/currying

2001-11-08 Thread Piers Cawley
"Peter Haworth" <[EMAIL PROTECTED]> writes: > [Apologies if you see this as a duplicate. I sent the original to perl6-all by >mistake] > > On Thu, 08 Nov 2001 11:10:43 +, Piers Cawley wrote: >> I keep coming back to the ruby/smalltalk >> block approach >> >> &assert_with_func := { >>

Re: Thoughts on constancy/currying

2001-11-08 Thread Peter Haworth
[Apologies if you see this as a duplicate. I sent the original to perl6-all by mistake] On Thu, 08 Nov 2001 11:10:43 +, Piers Cawley wrote: > I keep coming back to the ruby/smalltalk > block approach > > &assert_with_func := { > | &^sub is constant, $^expected is constant, $^got,