Thiago, thanks for your eye to detail, and I'm glad you see that complexity/simplicity balance that is Elixir. Your excitement is great to see and I hope it continues. If minor naming of 7 functions/macros is the only difference between Elixir and perfection, we are doing an awesome job! (Wait until you find out how list of integers are indistinguishable from Erlang strings. You might change your judgement on how close we are to perfection, but I digress...)
I love Elixir. I earn my living coding Elixir. Please be aware that while it is brand new to you, some of us have been dealing with it for 3, 4, even 5 years (I'm nearly 4 years, and José, of course, plus others were here ahead of me). These names are fairly fundamental. Sure, I can see how the 'def' part of those macros could be removed, but to be fair they really do represent a 'definition' of those concepts. The 'hd' and 'tl' come straight from our parent language of Erlang and are very convenient for those migrating from there (and I tend to use the [head | tail] syntax much more often anyway).
You might get better answers than mine concerning the reasons the names are as they are, but I don't expect there's going to be support for changing them due to aesthetics. There's been a lot of code written based upon them.
Since Elixir is so macro based, I suspect you could in fact perform that aliasing you want in your own projects, but I worry that sets you on the path into a special dialect of the language. Still, it's your choice to make.
-Greg Vaughn
> --
> 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-co...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/ccb62a31-5048-45db-a019-bc1215771713%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.