Re:First look: adding type annotations to JavaScript
by stasm on Thursday March 10, 2022 @12:11PM
(#30629368)
Type inference is one good reason. Similar syntax exists in a few modern languages, too: e.g. Rust and Swift. In languages with type inference it can be convenient that type annotations are in the postfix position relative to variable names:
[ Parent
| on HN ]
There are no comments on this comment yet.