@bglbgl gwyng Haskell 쓰던 사람으로서
Option::unwrap()
같은 걸 쓸 거면 어째서 Option
타입을 만들어서 쓰는 걸까 싶은 생각이 들 때가 있습니다…
@hongminhee洪 民憙 (Hong Minhee)
@bglbgl gwyng Haskell에도
fromJust
같은 함수가 있는 것과 비슷한 이유가 아닐까 싶습니다. segfault를 내거나 다른 해로운 일이 일어나지 않는 대신 즉시 종료되어 주기는 한다는 점에서 적어도 null 포인터보다는 낫기도 하고요.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0197bbd4-b5a5-7c7b-b1b8-8901d41b411b on your instance and quote it. (Note that quoting is not supported in Mastodon.)