What about

b = lambda {first_block_here}
c = lambda {second_block_here}
o.do_method(a,b,c)

Andrew

On Sun, Apr 25, 2010 at 12:56 AM, Mark Wotton <mwot...@gmail.com> wrote:
> On Sun, Apr 25, 2010 at 12:03 AM, Andrew Grimm <andrew.j.gr...@gmail.com> 
> wrote:
>> Is what you dislike about blocks the fact that you usually do
>>
>> o.do_method(a,b) {write_block_stuff_here}
>>
>> rather than having
>>
>> c = lambda {write_block_stuff_here}
>> o.do_method(a,b,c)
>>
>> or am I misunderstanding something?
>
> close. if it were just that, it'd be fine, but what if you want 'b' to
> be a closure as well? You can't pass two blocks in.
>
>> I wonder if ruby got i18n wrong in spite of, or because of (Han
>> unification disunity?), the creators frequently using non-ASCII text
>> themselves.
>
> As I've heard it, the Japanese in general dislike UTF8 because they
> got outmanoeuvred by the Chinese at the UTF meeting, so one of the
> characters in UTF8 which is meant to represent a Japanese glyph is
> actually the Chinese equivalent.
>
> mark
>
> --
> A UNIX signature isn't a return address, it's the ASCII equivalent of a
> black velvet clown painting. It's a rectangle of carets surrounding a
> quote from a literary giant of weeniedom like Heinlein or Dr. Who.
>        -- Chris Maeda
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-ocea...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-ocea...@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to