3 ms·
It looks like you didn't fully understand what the presentation is about. • `var` is replaced by `let`, but it works mostly the same in sane situations. It's m
by pornel 12y ago
It looks like you didn't fully understand what the presentation is about.
• `var` is replaced by `let`, but it works mostly the same in sane situations. It's merely a bugfix for warts in `var`. It has nothing to do with static type declarations.
• Types are optional. JSON is still allowed. For a bag of properties `Map` is suggested, since it doesn't have some of the quirks of using `Object` as a map.
And the WTF is not a suggested syntax but an explanation of the type system in a more formal notation.