Re:How necessary are var, let, and const?
by catshirt on Monday June 01, 2015 @01:13PM
(#9640332)
isn't 2 kind of a misdirected optimization for an untyped language?
[ Parent
| on HN ]
How is INTENT of immutability ( and with const - now an enforced immutability ) misdirected optimization in any language.
Javascript is dynamically weakly typed but it is still typed, typeof/instanceof exist for a reason.
sorry right- weakly typed.
my point is if you are using a weakly typed language, it doesn't care much about developer intent with respect to type. so why would it be concerned with developer intent with respect to mutability? seems arbitrary.