2 ms·
Various forms of checking invariants is applied in all kinds of "real life, professional programming" ranging from test suites to e.g. invariants checked by you
by vidarh 4y ago
Various forms of checking invariants is applied in all kinds of "real life, professional programming" ranging from test suites to e.g. invariants checked by your database schema. Most code contains huge amounts of manually written invariants (every check to determine if a value is valid before e.g. setting an instance variable in a class is an attempt to maintain an invariant), and often it'd be a lot faster to get stuff to work with more comprehensive ability to enforce invariants - whether just during development or in production too.