3 ms·
Hard agree. The type system is no place for business logic. If you want to get fancy, maybe some database constraints you can change later. Business logic is co
by tlarkworthy 6y ago
Hard agree. The type system is no place for business logic. If you want to get fancy, maybe some database constraints you can change later. Business logic is constraints over the representation... not the representation itself.
Also in generally the principle of "make invalid states unrepresentable” ends with the realization that only Idris can properly do it, which is not pragmatically useful.