Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The syntax is a little unorthodox, but just having a literal syntax _at all_ for things like lists/arrays beats having to call `new` on some random class you have to import and then doing a bunch of in place updates to add all the data.


In this respect C# has knocked it out of the park with shorthand initialisation syntax for arrays and objects. But it's newer and could look at what other languages are doing/not doing in that regard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: