3 ms·
I'd add one thing. The way we structure "logic" in subpart of systems is often one or nothing, while quite often we could check parameters by necessity. F a b
by agumonkey 9y ago
I'd add one thing. The way we structure "logic" in subpart of systems is often one or nothing, while quite often we could check parameters by necessity.
F a b c d can be valid if called in F a b c d e f g, because F gets what it needs (a b c d), the rest can be ignored. Like an implicit subclass relationship. A subclass B of A can have more features, but as long as it is an A, something depending on an A can enjoy it.
Of course this can cause issues (stack use in function application with unnecessary information, albeit a non naive interpreter/compiler could prune this).
In the end we spend a lot of time circling things around for safety, when we could have something more relaxed and thus more resilient.