News for hackers. Stuff that matters.
Re:Show HN: es6_maps, new Elixir syntax feature via runtime ... by aarongraham on Sunday May 12, 2024 @12:52PM (#40335825)
I really don’t understand why some people are so against this as a language feature. I get that the community tries to stay away from “magic” but where is the line between magic and convenient syntactic sugar.

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.

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.