2 ms·
If the length is read from outside the program it's an IO operation, not a static variable, but there are generally runtime checks in addition to the type syste
by jaggederest 8mo ago
If the length is read from outside the program it's an IO operation, not a static variable, but there are generally runtime checks in addition to the type system. Usually you solve this as in the article, with a constructor that checks it - so you'd have something like "Invalid option: length = 5 must be within 0-4" when you tried to create the Fin n from the passed in value