News for hackers. Stuff that matters.
Re:Runtime verification in Erlang by using contracts by macintux on Thursday February 07, 2019 @07:39AM (#19104821)
It definitely seems like any OOPL would be inherently at a severe disadvantage in this style. In most Erlang code all you’d have to check are the function parameters.

One concern I have with their Erlang solution is that the preconditions and postconditions are expressed for the function as a whole, not each function clause. In some contexts, rather like OOP, a function can be quite different depending on the context it’s called with.

There are no comments on this comment yet.