top | item 40335825

(no title)

aarongraham | 1 year ago

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.

discuss

order

hhreefgguu|1 year ago

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.