Every field evolves domain languages for a reason: it adds the benefit of naming actions instead of implicitly doing them.
"Being close to natural language" is a red herring. You can try, you will never get there and you will loose any benefit of a domain language.
Also, my point was that interpretations of expressiveness differ vastly, so we should stop claiming that something is more expressive then the other.
> We are doing applied CS here, don't we?
Yes. And CoffeScript prefers comprehensions over the maps. From the docs:
> Comprehensions should be able to handle most places
> where you otherwise would use a loop, each/forEach,
> map, or select/filterIn this case I prefer that way also because it puts the main thing first.
"In computer science, the expressive power of a language describes the ideas expressible in that language."
So, language expressiveness is about what can be expressed in a language, and not really about whether you type "multiply number by 2 for every number in 1 to 10" or use map, since that expresses the same thing.
Also, I'm not a native English speaker so I might be using the wrong words to express myself.
It's about usability: the most ingenious programmer will be more efficient using a simpler, straight-forward interface as long as it accomplishes the task. You're a user of a language's interface/syntax.
But we are drifting off here. I'll avoid using "expressive" the next time around :)
Since when is that the standard for a programming language? Some tools are made for expert usage -- they require training and foreknowledge. Programming languages weren't made for your mom.
I am actually in favor of having both options, so we might be on the same page actually. What I am opposed to, is the notion of adding a positive label to the less specialized version and a negative to the other.
The conditional could be placed outside the string and still be a one-liner. It's there mostly for "flow".