|
|
|
|
|
by stasm
1567 days ago
|
|
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: let user = new User();
let user: User = new User();
|
|