Tuesday, March 11, 2008

Evolving functional programming in Javascript(I)

On this page presented self-modifying JavaScript code example.

It is implementation of mutating JavaScript function. "mutate()" function used for modification of "execute()" function. "execute()" function performs some iteration with web page.

You can modify code of the functions in the text boxes on the page , and it will affect execution.

It seems, that JavaScript in some aspects even cooler than lisp.
That is really good feature, is JavaScript code placed on same board, as all document in browser.

So "code is data" 'unique' lisp feature is even clearer in JavaScript.

No comments: