Rust에서의 방어적 프로그래밍 패턴
------------------------------
- 러스트의 *타입 시스템과 컴파일러를 적극 활용* 해 버그를 사전에 차단하는 *코딩 습관* 을 소개
- 벡터 인덱싱,
Default 남용, 불완전한 match, 불필요한 불리언 매개변수 등 *취약한 코드 냄새(Code Smell)* 사례를 제시하고 대안을 설명
- *컴파일러가 불변식을 강제하도록 구조를 설계* 하는 것이 핵…
------------------------------
https://news.hada.io/topic?id=24880&utm_source=googlechat&utm_medium=bot&utm_campaign=1834

0

If you have a fediverse account, you can quote this note from your own instance. Search https://sns.lemondouble.com/notes/afynkldll6 on your instance and quote it. (Note that quoting is not supported in Mastodon.)