@hongminhee@hackers.pub洪 民憙 (Hong Minhee) @bgl@hackers.pubbgl gwyng 만약 None이라면 명시적으로 패닉을 내게끔 하는 것도 의도에 있다고 봐요. 패닉이 안 나야한다면 말씀하신대로 unwrap_or 등을 활용하는 편이 낫지만, 패닉을 내고 싶을 수 있죠. 그리고 미약하지만 최적화에도 도움이 된다고 들었어요.
저는 의외로 'unwrap'이라는 키워드가 명시적으로 있는게 코드를 검색할때나 읽을때나 매우 도움되더라구요

0

If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0197b540-b749-73a3-91ed-6c8e0d1172dd on your instance and quote it. (Note that quoting is not supported in Mastodon.)