Re: [elixir-core:10411] Proposal: Have :array get its own protocol implementation

2021-09-01 Thread José Valim
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 wrote: > Hello, > > Not sure what the

[elixir-core:10411] Proposal: Have :array get its own protocol implementation

2021-09-01 Thread ad...@a-corp.co.uk
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