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

It is also because [] is an operator that you can override. I think because of this it would make more difficult to use it also to create arrays.

It is more ugly for arrays but much more helpful for other things. And it also make sense with the lists as you said.



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

Search: