Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
colejohnson66
5y ago
0 comments
Share
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.
0 comments
default
newest
oldest
rowanG077
5y ago
These are not runtime errors. But regardless I rather like a runtime error instead of doing the wrong thing.
colejohnson66
OP
5y ago
Why would you
prefer
a runtime error over just not making the mistake in the first place?
rowanG077
5y 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.
1 more reply
j
/
k
navigate · click thread line to collapse