3 ms·
How is INTENT of immutability ( and with const - now an enforced immutability ) misdirected optimization in any language. Javascript is dynamically weakly type
by pm24601 11y ago
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.
- 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?