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

What is the desired behavior? I see at least 3 options: panic (abort at runtime predictably), compiler error (force handling both Some&Nothing cases [needs language support otherwise annoying], exceptions (annoying to handle properly). There is too much undefined behavior already.

Perhaps, 3 types could exist for 3 options.



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

Search: