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

> Why not simply add an `is_closed` flag and throw an error if it is?

That's a way of doing it at runtime. The article describes catching the error at compile time.



I see, thanks.




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

Search: