Thursday, January 7, 2016

Validation via Static Typing

Furthermore, most type system lack means to statically describe types such as “a list with at least two elements” or “a floating-point number larger than or equal to zero”.
Such requirements should be described as far as possible using static typing; anything else has to be worked around via run-time validation. 
http://programmers.stackexchange.com/a/258281

No comments:

Post a Comment