@hongminhee洪 民憙 (Hong Minhee)
@bglbgl gwyng Haskell에도
fromJust
같은 함수가 있는 것과 비슷한 이유가 아닐까 싶습니다. segfault를 내거나 다른 해로운 일이 일어나지 않는 대신 즉시 종료되어 주기는 한다는 점에서 적어도 null 포인터보다는 낫기도 하고요.
@kroisse크로이세
@bglbgl gwyng 네, 그런데
fromJust
보다 Option::unwrap()
이 훨씬 많이 쓰인다는 느낌이 있습니다. 🤔
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0197bbe0-9d6d-712d-9158-5b3de821ef9b on your instance and quote it. (Note that quoting is not supported in Mastodon.)