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

They were saying guards are a crude form of type-checking, not intrinsically crude.

Really they are a perfectly regular form of type hinting--as is pattern matching in function heads--when being used for no other purpose than to ensure the correct type is passed at runtime.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: