On Wednesday, 24 December 2014 at 10:32:33 UTC, Daniel Murphy
wrote:
I see this as more of an argument for avoiding long functions.
Marking every possible parameter as const/immutable has a cost,
and I don't think the number of bugs it prevents justifies it.
If it was the default the cost wouldn't exist.
I want immutable by default, everywhere... Yes.
A lot of the semantics of current programming languages is due to
bad habits that was caused by languages designed for less capable
backends. When those languages were designed you had to optimize
trivial code by hand. C falls into this category.