4 ms·
> I think using variables of equal lengths with opposite meanings is an anti-pattern. Perhaps the worst example of this is Kotlin’s var/val. I much prefer var/
by pansa2 6y ago
> I think using variables of equal lengths with opposite meanings is an anti-pattern.
Perhaps the worst example of this is Kotlin’s var/val. I much prefer var/const.
- jez 6y agoI get the sentiment, and I'd go further to say that I prefer Rust's `let` vs `let mut`, i.e., the longer & visually noisier option discourages mutability by default, and draws attention to when it is used.