Sunday, December 26, 2010

Anonymous function syntax across languages

One of my favorite references is the "Syntax Across Languages" site:
Anonymous function syntax across languages

It's amazing how many different (although some very similar) ways you can write an anonymous function.  I have to confess, even in the development of my own language, Impulse, I have added yet another variation: |a, b| a + b, which is essentially Ruby without the braces { }.