Categories
Code Curated

Practical language kleptomania

Wherein pattern matching is used

Introducing Functor – another library for implementing multiple dispatch/pattern matching in Ruby. This is a great example of what I talked about at OSCON: stealing ideas and applying them to your daily work. I’m particularly impressed with how Dan has applied it to something that isn’t a recursive mathematical function – check out the example of using in a view class.

By Adam Keys

Telling a joke. Typing.