The reason why the scala compiler is slow among ot...
# functional
r
The reason why the scala compiler is slow among other things is because implicits there follow scoping rules, you can have them declared locally, outside the scope in the same class, in package level objects, then it fallbacks to companions, etc... and it also has to consider dependent types that may be compatible with the type signature so there is a lot of backtracking. Global implicits should be fast to resolve imo which is also how they work in Haskell for typeclass instances.