4 ms·
It’s not entirely subjective. For the majority of languages with a `let` keyword, it creates a binding which can’t be reassigned. JS is the only major language
by eyelidlessness 6y ago
It’s not entirely subjective. For the majority of languages with a `let` keyword, it creates a binding which can’t be reassigned. JS is the only major language I’m aware of that breaks this expectation, and uses `const` instead.
In fact, I had assumed Sabre followed the more common pattern, and was quite surprised to discover it doesn’t later in the docs. I think that’s a pretty clear case of “bullshit” in the sense described in the README.
- dragonwriter 6y ago> For the majority of languages with a `let` keyword, it creates a binding which can’t be reassigned. JS is the only major language I’m aware of that breaks this expectation The whole BASIC family, including the VB subfamily, also breaks it, though in some (including VB) LET is an optional noise keyword and not required.
- eyelidlessness 6y agoThat’s fair and a reasonable contradiction. Though I’d say that’s more in line with the huge range of optional keywords in SQL that are more a matter of readability preference than syntax.