News for hackers. Stuff that matters.
Re:Why Swift's type checker is so slow by nequo on Saturday June 22, 2024 @09:37AM (#40759051)
It seems like it’s not only function overloading (which, as you point out, Haskell does too by way of typeclasses) but also the implicit conversion between Int and Double. OCaml, Haskell, and Rust all require you to convert between them explicitly so they don’t need to figure out whether each 1 in the expression is an Int or a Double.

Am I seeing this correctly? Is HM + polymorphic literals + implicit type conversion the cause of Swift’s exploding compile time in such cases?

There are no comments on this comment yet.