5
Using the keyword let to declare constants is not a general convention. The keyword let is used that way in Swift, Rust and Haskell, but in Javascript it denotes a regular variable (just one with a special scope).
As for where the use of let to declare variables come from, it's a very old tradition for mathematical proofs:
(Source, due to popular demand: ...
3
the language considers String from "string 1.0" a different type from String from "string 1.1"
Well, you found a major flow in the language you're designing.
Types should be identified by their namespace. As soon as the namespace is kept unchanged between versions, a consumer would use string.String independently if the type is actually ...
answered Jan 4 at 19:40
Arseni Mourzenko
129k3030 gold badges328328 silver badges487487 bronze badges
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
programming-languages × 1353language-design × 142
java × 77
c × 73
c++ × 68
object-oriented × 66
programming-practices × 64
functional-programming × 59
history × 58
compiler × 57
python × 55
language-agnostic × 52
learning × 51
language-features × 50
c# × 44
syntax × 44
javascript × 40
design × 39
php × 32
terminology × 25
type-systems × 25
parsing × 23
web-development × 22
interpreters × 19
design-patterns × 18