Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: