Y
Hacker News
new
|
ask
|
show
|
jobs
by
colejohnson66
2049 days ago
Default mutability like practically every large language? I’ll admit, both have their uses, but if you’re striving for less runtime errors, default immutability makes more sense.
1 comments
rowanG077
2049 days ago
These are not runtime errors. But regardless I rather like a runtime error instead of doing the wrong thing.
link
colejohnson66
2048 days ago
Why would you
prefer
a runtime error over just not making the mistake in the first place?
link
rowanG077
2048 days ago
Because I don't like having bombs in my software waiting to explode when you touch it. That's essentially what mutable by default is.
link
colejohnson66
2048 days ago
Well then we’re on the same page: default immutability is better. You’re wording three comments up seemed to say you prefer default
mutability
link