Hacker Newsnew | comments | ask | jobs | submitlogin
zeeone 855 days ago | link | parent

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.


tikhonj 855 days ago | link

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

-----

munificent 855 days ago | link

> 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.

-----

mixmastamyk 855 days ago | link

gzip will negate a great deal of that advantage.

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | DMCA | News News | Feature Requests | Bugs | Y Combinator | Apply | Library

Search: