Re:“The days of using untyped languages on non-trivial proje...
by jghn on Friday July 14, 2023 @01:12PM
(#36726827)
I always wonder why inference a la Hindley-Milner isn't what people push as the best of both worlds.
[ Parent
| on HN ]
Re:“The days of using untyped languages on non-trivial proje...
by alwaysbeconsing on Friday July 14, 2023 @01:32PM
(#36727169)
Inference for static types requires more from the compiler in two key ways that impact the developer experience. First, it's just plain more work to do when compiling, so compile times are longer than they might otherwise be. Second, error handling and messaging needs to be written very carefully to avoid dense and unhelpful output when inference fails. It's positive in many ways, but it's not a free lunch.