Re:Clean – A functional programming language
by e12e on Saturday December 16, 2017 @04:57PM
(#15942389)
Reminds me of this (old) issue I recently came across wrt factorial in Julia (just googling to figure out promotion to handle 52! - the trick is using a bigint).
Point being, you're spot on about mixing types and even "simple" functions need not be trivial (for various reasons, eg: factorial of a negative number - might be defined as negative infinity):
Conflating of data types with storage types is a surprisingly common occurrence, although I can appreciate it's largely due to pragmatism.