Confirming suspicion about quote two-element tuples

I have a suspicion that I’ve never seen written about, so before I start making statements of “truth", I want to confirm them.

Two-element tuples are listed among the Elixir literals that when quoted, return themselves. Therefore I assert: Two-element tuples return themselves when quoted in order to support keyword lists returning themselves when quoted. Is that the sole motivation behind the two-element tuple exception?

2 Likes

Received reply on mailing list confirming this. https://groups.google.com/forum/#!topic/elixir-lang-talk/XbZkGb8LLes

3 Likes

Awesome! I wondered about this too.