4 ms·
>Returning a value from an (if ...) already makes it more functional than a lot of languages Like which? Pretty much every language has a ternary operator. Lis
by Grue3 10y ago
>Returning a value from an (if ...) already makes it more functional than a lot of languages
Like which? Pretty much every language has a ternary operator. Lisp's IF is not a function, by the way. A truly functional IF would have to wrap THEN and ELSE clause in lambdas so that all arguments can be evaluated before deciding which one of them to execute.