We supported tuples before but it led to a bunch of false positives on records looking like tuples. I think even the the is_array check does not guarantee it is actually an array. It is only a shallow check.
On Wed, Sep 1, 2021 at 19:55 ad...@a-corp.co.uk <a...@a-corp.co.uk> wrote: > Hello, > > Not sure what the go is with protcols, but given that there is an is_array > function, would it be possible to have an erlang :array dispatch to its own > implementation for protocols? > > Right now if you pass an :array to a protocol it treats it as a Tuple > (which is reasonable as right now that's what it is implemented as). > > Best > > Adam > > -- > 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/9faf9f62-72ad-41bd-9179-ee25d155cf65n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/9faf9f62-72ad-41bd-9179-ee25d155cf65n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAGnRm4%2BvO5r9wUe6M3HE%3DOLW%2Bhtu3cjiexD_bvcuhMdDbnYTtQ%40mail.gmail.com.