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

In Python, [] is an expression too; it is an expression that constructs an empty list and returns it.

Again, if you change this just for argument lists, you're looking at another wart.

I'm not disagreeing with you. Your logic makes sense in isolation. However, language design invariably requires this sort of tradeoff.



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

Search: