> You basically get SML.
SML is still more usable than the statically type languages in use the most today (C++ and Java).
Re:A Farewell to FRP
by nostrademons on Wednesday May 11, 2016 @03:05PM
(#11678231)
Yes, but by "modern static typing" I think we're talking about the latest generation of languages that have come out since 2010 (Swift, Rust, Kotlin, etc.)
Consider that in 2006, MPTCs with fundeps was the preferred way to represent "a collection of items that can be compared via equality" [1]. Associated types were a vague research idea [2] that showed a lot of promise, but hadn't been implemented in any language with type inference (they did exist in C++ templates, but C++ isn't exactly what people think of when you say "modern type system"). Now both Rust and Swift feature polished implementations of associated types and use them pervasively in the standard library.
[1] https://en.wikibooks.org/wiki/Haskell/Advanced_type_classes#...
[2] https://prime.haskell.org/wiki/AssociatedTypes