Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
colejohnson66
5y ago
0 comments
Save
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
3 comments · 1 top-level
top
newest
oldest
rowanG077
5y ago
· 2 in thread
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