|
|
|
|
|
by joemoon
5027 days ago
|
|
> Just because you CAN do something in CoffeeScript doesn't mean you SHOULD, or should ALL of the time. Just like in JavaScript where, if you want, you can write all of your code on one line, but you shouldn't. Isn't this precisely the problem? Why make a better Javascript then make the same mistakes as the original? One of the main goals is for Coffeescript to be more readable that Javascript. Having ambiguous syntax and so many different ways of doing things means that people will write code in all of these different ways. Your rebuttal is a long list of what you SHOULD and SHOULDN'T do, but there are two problems: 1. Not everyone will agree with you. 2. People will write it the "bad" way anyway. Ultimately this means less readable code, especially when you have to read someone else's code. |
|
People will write bad code in every programming language you give them. I don't see that as a justification for limiting the expressiveness of a language. If you take that line of reasoning too far you end up with Java.