Smalltalk, Haskell, and Lisp
...walk into a bar.
Smalltalk: “Bartender, please send an instance of Martini to me - selector withOlive: set to true.”
Haskell: “I’ll take beer >>= chill, but only if it’s defined for all inputs and returns IO ().”
Lisp: “(drink ’(ale (temperature cold))) .”
The bartender mutters, “Great ... an object, a functor, and a list.”
Then a janitor walks by sweeping the closures that they left.
"cold temperature ale drink"
to which the bartender replies "go you here". The janitor smiles as no sweeping required on a clean stack.
reply
to which the bartender replies "ok"
After drinking the ale, the FORTH person says "bye".
Smalltalk, Haskell, and Lisp
...walk into a bar.
Smalltalk: “Bartender, please send an instance of Martini to me - selector withOlive: set to true.”
Haskell: “I’ll take beer >>= chill, but only if it’s defined for all inputs and returns IO ().”
Lisp: “(drink ’(ale (temperature cold))) .”
The bartender mutters, “Great ... an object, a functor, and a list.”
Then a janitor walks by sweeping the closures that they left.