[LRUG] Passing Multiple Blocks in Ruby

Steven Deobald steven at c42.in
Mon Jul 9 20:57:48 PDT 2012


Hi Paul,

I gave a talk at RubyConf India[1] which sounds similar to Pablo's
presentation.

Do you have a link to his slides, by any chance?

[1] "clojure is my favourite ruby": http://vimeo.com/42720839

Steven Deobald
C42 -- www.c42.in -- www.rubymonk.com



On 10 July 2012 04:04, Paul Mucur <mudge at mudge.name> wrote:

> Hot on the heels of Pablo's presentation tonight ("What Ruby Can't
> Do"), somewhat annealed by the Slaughtered Lamb's wares and keen to
> exercise some of the thornier corners of Ruby's syntax (particularly
> from 1.9 onwards), I present the following for your consideration:
> "Implementing if in Ruby"
> http://mudge.github.com/2012/07/09/implementing-if-in-ruby.html
>
> I explain in detail in the post but I've whipped up a small gem called
> "if" that allows you to do the following were you feeling so inclined:
>
>   some_predicate.if ->{ "I'm true!" }, else: ->{ "I'm false!" }
>
> The whole thing is tongue-in-cheek (using such code in production is
> probably tantamount to treason) but does make me wonder how many of
> Ruby's keywords could be removed.
>
> -- mudge
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20120710/3c8c7358/attachment-0003.html>


More information about the Chat mailing list