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

It is Haskell's definition, however.

All functions that have `unsafe` as part of their name have it because they can lead to u.b. with improper use.



Is it? The definition I see in the GHC docs seems to be broader than that: https://downloads.haskell.org/ghc/latest/docs/html/users_gui...

Regardless, I agree the function under discussion though, "head", is not "unsafe" in either sense. That's why I said "as an aside".




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

Search: