Re:Show HN: es6_maps, new Elixir syntax feature via runtime ...
by hhreefgguu on Sunday May 12, 2024 @01:46PM
(#40336159)
Magic == “I don’t like it, but I want to sound more objective or rational than I really am”.
You’re definitely correct that there’s as good an argument that these implicit features you mention are “too magical” as there is the the “ES6” syntax is too magical.
For example keyword lists as the last argument to a function don’t need brackets, and keyword lists are really lists of tuples where the first item is an atom. I feel like those two things are in some ways less obvious and more magical than this map shorthand.