Do user defined type classes have any impact on compilation time? I mean the current implementation, when it stops to be "experimental".
Will it be practical to use UDFS as much as possible to write libraries? (The desired extreme would be code with no imports, everything would get parametrized.)
C++ templates can be, in theory, used to implement almost everything and to reduce dependencies a lot, yet such approach is not practical due impact to compilation time (for all compilers I know).
User defined type classes are an interface for structural typing. Nim's equivalent to C++ templates are generics, which are already usable. I'm sure that you can cause the same sort of code explosion with generics as with templates, but I'm not really sure what your goal is.
The desired extreme would be code with no imports, everything would get parametrized
I don't see how this would possible: modules cannot interact unless they are imported.
I probably should have asked more straighforwad question.
Let say there's a big library with lot of exported functions. If I replace all their parameters with my type classes will it slow down the compilation significantly?