August 2010
14 posts
NOT GUILTY
4 tags
The Symbol#to_proc myth →
Symbol#to_proc performing like a dog is simply just not true anymore.
6 tags
Stabby Lambdas & Curried Functions
Starting a new project at work in Ruby 1.9, I noticed there is a new syntax for creating lambdas:
a = ->(a,b) { a**b }
This is equivalent to the conventional
b = lambda { |a,b| a**b }
Thus:
a[2,5] == b[2,5]
My opinion is split on the aesthetic appeal of this new syntax, sure it’s brief but it’s also erlang-y. Fortunately it does have a useful feature, i.e. the ability to give...
Apple’s App Store is a “Warehouse of Shit” - David Heinemeier Hansson
July 2010
13 posts