by btilly · 14y ago · 0 comments
However modifying it to support conditionals is easy. Just add a built-in function if(condition, expr1, expr2). Now you can build if's. Since the language already properly supports recursive function calls, now it is possible to implement loops through recursion, and you're off and running.
[1] http://en.wikipedia.org/wiki/Church_encoding#Church_booleans
A two element array of function pointers (or code addresses) and an operator that turns true/false into 0/1 is enough to do conditionals.