> > > This could indeed be faster, however you'd have to get everything to agree > on a single representation (a special tuple format perhaps? but then how > would that rank with other tuples?). >
You don't have to agree on a format though. Imagine Decimal defines its own format and Rational defines another, as long as at some point you implement each other protocols, anywhere, it will work just fine. That's the beauty of protocols after all! In the worst scenario, it will degenerate to the case we are talking about right now: (n * (n - 1) / 2) implementations? -- *José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R&D -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4J8jGZm08qH-YF8RYSrNdMGNXkR-vfG1q2BgNUGRAkboQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
