We are doing applied CS here, don't we? So lets express us in that language. Also, why do we accept a*2 then? This is short mathematical notation, also a specialized language.
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.
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/filter
In this case I prefer that way also because it puts the main thing first.
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.