me:
let var = foo;
my typescript LSP: this let declares a variable that is only assigned once
me: uh… yes. yes it does
my LSP: *gestures impatiently at the word “let”*
me: is… there something wrong with that? should I do something else?
my LSP: *seething with rage, pointing emphatically at the word “let”*
(it was trying to tell me to use const instead. which… it can fuck right off I’m using let every time lol immutability is for Haskell)
@kasdeya yeah that ended up in a lot of recommended lint templates because a lot of newer js use cases benefit from the extra guarantees of const . . . it's pretty obnoxious if that's not the style you're writing though