3 ms·
isn't 2 kind of a misdirected optimization for an untyped language?
by catshirt 11y ago
isn't 2 kind of a misdirected optimization for an untyped language?
- pm24601 11y agoHow 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.
- catshirt 11y agosorry 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.
- pm24601 11y agomaybe because developers in general prefer to not have bugs?