If is_struct is implemented with head/clause splitting it will either lead to code duplication or you would have to move the code to a separate function that will mess with stacktraces, I wouldn't be surprised if it had other unintended consequences also.
We don't do this kind of code shuffling anywhere else in the language afaik so I don't think it's worth it to just to add is_struct. On Wed, Sep 27, 2017 at 10:21 PM, OvermindDL1 <[email protected]> wrote: > On Wednesday, September 27, 2017 at 2:21:16 PM UTC-6, OvermindDL1 wrote: >> >> ... >> And do not >> > > s/not/note/ >.> > > -- > 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/2d959f1d-770a-4df0-9d58- > b50bfbc7ae62%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/2d959f1d-770a-4df0-9d58-b50bfbc7ae62%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Eric Meadows-Jönsson -- 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/CAM_eapi6C2PE6db5-W9yKicWjSknugqWuY4Dxd40cGnDgrC8rg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
