Default argument values for blocks

Or better yet, just drop the idea of default argument values for blocks
altogether. I still haven't seen what problem this is trying to solve.

Dan

···

-----Original Message-----
From: itsme213 [mailto:itsme213@hotmail.com]
Sent: Tuesday, October 11, 2005 3:42 PM
To: ruby-talk ML
Subject: Re: Default argument values for blocks

"Yukihiro Matsumoto" <matz@ruby-lang.org> wrote in message

> For your information, you can do
>
> foo = ->(foo="bar"){puts foo}

I hope you can find a better syntax ...

unsubscribe

"Berger, Daniel" <Daniel.Berger@qwest.com> wrote in message

> foo = ->(foo="bar"){puts foo}

Or better yet, just drop the idea of default argument values for blocks
altogether. I still haven't seen what problem this is trying to solve.

Please don't do that, some apps need to define methods dynamically (e.g.
with define_method) and blocks let them do this with closures.