I had the same thought some time ago, with a code to prove the possibility.
I have since decided it's a bad idea. There are many ways to extend Elixir 'irresponsbly' making code that is not clear and readable like core Elixir is. So by adding features like extended pipes and iteratable tuples (both interesting in isolation), we discover that actually 'less is more' For reference: https://gist.github.com/tallakt/a6701b1e5c2808c85104 See the test at the end for usage example -- 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/8e5049f7-3941-43c3-a648-594419032e7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
