I recently ran into the foo.toSource() option in JavaScript. This allows a serialization of a function. I was wondering about the possibilities of transferring functions over the networks, from server to client, and executing them at a later time - with eval().
Do you think it's actually useful?
Are there any frameworks using such a paradigm?
The only use cases I see are:
The thing you thought about isn't posible. So we can only send the text representation of the function, not it's context or closures and all that stuff.