∑ Xah Lee 李杀 is a user on mstdn.io. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
∑ Xah Lee 李杀 @xahlee

now having experience with , i think it's not an answer. The problem is, fitting types to doesn't work. e.g. try to decorate types to complex destructuring xahlee.info/js/js_func_arg_des

· Web · 1 · 1

@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.

@xahlee can't you do this:

interface Circle {
center: [number, number];
radius: number;
}
function draw_circle ({center:[x,y], radius:r}: Circle) { ... }