Conversation

I have issues with type classes as well but I share this concern with Brian - by parameterizing the entire data structure on a dictionary every method has that constraint, even those that don't need it (e.g. empty).
1
2
That fans of static typing prefer to assume coherence even if not enforced (as in Scala) rather than what’s enforced still puzzles me. OTOH, Scala needs applicative functors before associated types on implicits become usable; there’s a PR possibly implementing them in Dotty.
1