News for hackers. Stuff that matters.
Re:JavaScript variables: var and let and const by melling on Friday March 06, 2020 @02:29PM (#22506457)
I like that Swift has var and let. Having the first letter be different means less typing with autocompletion.

I suppose when I get to use voice recognition for coding, there will also be less confusion.

Re:JavaScript variables: var and let and const by eyelidlessness on Friday March 06, 2020 @02:52PM (#22506678)
Generally speaking most languages treat `let` as constant/immutable, and the real shame is that JS did not. It's understandable why (they needed a block-scoped `var`), but unfortunate nonetheless.