[erlang-questions] Orthogonality and Principle of least surprise Was: chained functions

Per Melin per.melin@REDACTED
Mon Feb 6 18:03:46 CET 2012

> This is a good principle, but Ruby does not heed it:

If we're going to pick on Ruby I think you can find several examples closer to what this thread is about.

f = lambda { 4711 }
NoMethodError: undefined method `f' for main:Object


Least surprise?

More information about the erlang-questions mailing list