Is JavaScript potentially one of the most complex languages? I was studying C# and got as far as event delegates, when I was distracted by JS.
JS has things like closures, functions as arguments, functions are also objects, currying, prototype inheritance and..
Code: Select all
function Y(le) {
return (function (f) {
return f(f);
}(function (f) {
return le(function (x) {
return f(f)(x);
});
}));
} // Wow! (an applicative order y combinator..)