3 ms·
Can you give a practical example on how to encode invariants explicitly in a more popular language? As for contracts, basically 99% of the languages have some
by pdimitar 8y ago
Can you give a practical example on how to encode invariants explicitly in a more popular language?
As for contracts, basically 99% of the languages have some form of the Java interfaces, or Elixir behaviours/protocols, or LISP's several ways of doing it. But for invariants, I would appreciate an example if you are willing to provide one.