now having experience with #typescript, i think it's not an answer. The problem is, fitting types to #JavaScript doesn't work. e.g. try to decorate types to complex destructuring http://xahlee.info/js/js_func_arg_destructure.html #xahcode
@jeremiah collective autism. lol :D
@xahlee can't you do this:
interface Circle {
center: [number, number];
radius: number;
}
function draw_circle ({center:[x,y], radius:r}: Circle) { ... }
@xahlee Fitting Types to Javascript is like trying to add dynamic features to C. My theory on how types came to Javascript is basically collective autism.