Higher Order Messaging in Ruby

Posted by Kerry Thu, 05 Apr 2007 19:16:00 GMT

Kevin Bullock: WARNING: Deep magic ahead!

I stumbled on a concept called Higher-Order Messaging (HOM) today. It’s a handy way to allow an object-oriented language to call a message on all members of a collection without having to manually iterate over the collection…

This is quite nifty, I’m not sure the deep magic label is warranted though. It’s well worth reading through to the end, especially if your not so familiar with the way Ruby can be used to create new language features as described.

Some of the comments completely miss the point, but thankfully are pulled up as such.

Trackbacks

Use the following link to trackback from your own site:
http://blogs.divisibleprime.com/ronin/articles/trackback/855

Comments

Leave a response

Comments