Hacker News new | comments | show | ask | jobs | submit login

If Python uses indentation rather than curly braces or keywords, then it would not allow for minimization or obfuscation when used in the browser. This is the main reason IMO Google chose to design Dart with curly braces.



Playing the devil's advocate, if the browser just had a VM and ran bytecode, the syntax wouldn't matter.


> IMO Google chose to design Dart with curly braces.

I don't think minification was a concern. Familiarity was: the world's most popular languages are curly-based so adopting that makes the language easier to learn for millions of coders.


gzip will negate a great deal of that advantage.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: