News for hackers. Stuff that matters.
Re:False Cognates and Syntax: The Importance of Syntax in Pr... by emidln on Tuesday May 29, 2012 @08:13AM (#4037063)
This seems like the same thing that lisp has had since forever in cond. In CL:

(defun is-greater-than (x y) (cond ((< x y) T) (T nil)))

As with the erlang example, I need a T test to get an else clause, although in this particular example, the result of the cond is nil if nothing matches anyway.

There are no comments on this comment yet.