3 ms·
> should be, "How hard is to make accidental mistakes?" > and "How easy is it to find and fix mistakes?" Sure, accidental mistakes are avoidable. But I don't
by zzzcpan 13y ago
> should be, "How hard is to make accidental mistakes?"
> and "How easy is it to find and fix mistakes?"
Sure, accidental mistakes are avoidable. But I don't think there is a way for the language to help us write proper abstractions. I mean if one doesn't know how to take mutable state from a bunch of functions and abstract its mutation away, i.e. allow it to mutate inside a single function only, than what can the language do? But what if you simply have an inconsistent code, like handling errors differently in different places?
Would you use a language that produces a warning of a hypothetical bug if you have state changes too far away from each other?