2 ms·
You're moving the goalposts now; those are integration not unit tests. But the type system certainly can validate/enforce that the column you select from the DB
by gaius 10y ago
You're moving the goalposts now; those are integration not unit tests. But the type system certainly can validate/enforce that the column you select from the DB into an integer, really is an integer in the DB too. OCaml does this with Postgres. It can also make sure the end result of a calculation is of the correct dimensions, that you're not adding cms to inches, etc etc.