Re:The general value of typed functional programming lies in...
by ZephyrP on Monday February 24, 2020 @11:32AM
(#22405504)
plenty of other languages do so, but it's both unfairly diminishing to the parent & questionably correct to refer to it as "basic type safety stuff"
[ Parent
| on HN ]
Re:The general value of typed functional programming lies in...
by hopia on Monday February 24, 2020 @02:18PM
(#22407372)
On the other hand, it's not a very advanced type level feature either to insist on total functions. I'm sure Rust's type system goes a lot further in enforcing a good level of type soundness.
Edit: typo
Re:The general value of typed functional programming lies in...
by a1369209993 on Monday February 24, 2020 @03:51PM
(#22408302)
No, it is basic. If you have a sum type, and you have no defined behaviour for one of the terms of the sum type, your code is not type-safe and a language that aspires to "basic type safety stuff" should at least issue some kind of error about it. In a putatively statically-typed language (ie one that does type checking at compile time), you'd expect that error to happen at compile time.
Re:The general value of typed functional programming lies in...
by threatofrain on Monday February 24, 2020 @11:46AM
(#22405651)
JS has this too in TS, so I’m pretty sure the perception among users of typed languages is that this is a basic part of what type systems do. What does this have to do with FP?