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

I see, so in that second case it’s a runtime check rather that a static check. That makes sense.


Depends on the rest of your type system. If your language is capable of tracking whether a list is empty then it can allow dropping empty lists without a runtime check.




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

Search: