Evolutionary Programming and Gradual Typing in ECMAScript 4

This is the case in our code: the caller of send has access to the object wrapped by send. Whether wrappers are the right solution depends on how and when we expect the data to change – on purpose, or accidentally; and in the course of a call, or over time. / / Version 2b... function send(msg: like Msg0) {msg.id = sendToServer(JSON.encode(msg)) ................
................