Hacker News new | ask | show | jobs
by bjourne 244 days ago
No, you can not. Your example is correct only if addition is associative. And it is not always associative. Hence the need for higher abstractions, where you model commutativity and associativity of certain operations.