> You probably want to implement them as Maps/Structs, since protocol support for tuples is limited.
Yep. This is the current conundrum. You can't really do custom guards with maps, and you can't really do protocols with tuples. As stated, better map support in guards would bridge this gap. On Thu, Jun 30, 2016, 12:29 AM Norbert Melzer <timmel...@gmail.com> wrote: > > Peter Hamilton writes: > > > You also likely want to use tuples because map support in guards is > > limited. > > You probably want to implement them as Maps/Structs, since protocol > support for tuples is limited. > > -- > 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 elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/87ziq3jfry.fsf%40norbert-tuxedo.news.nobbz.de > . > For more options, visit https://groups.google.com/d/optout. > -- 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 elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAOMhEnz0R_BZPKa7btA8NxzMqQDo%2BmSQg%3D_dKh_ZG0v5D1BadQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.