Re:CoffeeScript: JavaScript without the Fail (slides)
by cageface on Saturday September 10, 2011 @12:46AM
(#2980827)
Significant whitespace is a big turn off for me too. What you gain in concision for small examples you more than lose in tooling and code manipulation.
Re:CoffeeScript: JavaScript without the Fail (slides)
by simpsond on Saturday September 10, 2011 @11:21AM
(#2981705)
I used the think the exact same thing. However, after spending some time with tools that do consider white space significant (coffeescript, haml, sass) I have come to prefer it. It's part noise reduction and part consistency between devs and environments that I prefer.
Re:CoffeeScript: JavaScript without the Fail (slides)
by cageface on Saturday September 10, 2011 @04:57PM
(#2982463)
I've been burned many, many times in python by the indentation.
Re:CoffeeScript: JavaScript without the Fail (slides)
by Bodil on Saturday September 10, 2011 @06:32AM
(#2981313)
Why would significant whitespace impede tooling? If the compiler can parse it, why can't your refactoring tools?
Re:CoffeeScript: JavaScript without the Fail (slides)
by cageface on Saturday September 10, 2011 @05:02PM
(#2982475)
Because you can't automatically re-indent code. In a language like C or Javascript, I can just copy, paste and move chunks of code around and have pristine re-indentation with a keypress. In Haskell, Python, or Coffeescript I have to be very careful and have to manually re-indent if I want to move code or change scopes.
Whitespace is much better left as a purely aesthetic feature, IMO.
And I'm sorry, but whitespace-for-blocks really kills it for me. I can't stand it in python, but I'll suffer through it for the ecosystem. Coffeescript brings nothing to the table for me.