/ sealed / Result / Arrow 가 각자 남긴 문제 02 Rich Errors 실패를 반환 타입에 적는 문법과 설계 원칙, 그리고 못 하는 것 03 그래서 어떻게 쓰나 4일 전 공개된 따끈따끈한 공식 예제 04 AI 시대의 에러 처리 절차는 자유롭게, 도메인 계약은 명확하게
처리 실패 가능성을 적을 곳이 없다 null 간결한 관용구와 체인 이유와 위치가 사라진다 sealed Exhaustive 검사 성공까지 감싸야, API 마다 반복 Result 표준 래퍼 에러 타입 표현 불가 Arrow 타입 있는 에러 팀의 학습 비용 전부 언어가 준 범용 재료로 각자 조합한 방식, 복구 가능한 실패를 위한 전용 문법은 한 번도 없었습니다
It s needed to form only DISJOINT UNIONS. KEEP-0462 / Error types 에러와 값이 절대 격치지 않는 구조 평범한 타입 검사로 구분된다 Due to the disjointness ... it will always be possible to distinguish between them using ORDINARY RUNTIME TYPE 도 도 박싱 래퍼OF CHECKS . This representation AVOIDS THE OVERHEAD BOXING AND UNBOXING , making error handling almost overhead free. KEEP-0462 / Compilation scheme for JVM 필요 없다
계약으로 바꾸는 일 KEEP-0462 토론 #487 notes/0009 github.com/Kotlin/KEEP/blob/main/proposals/KEEP-0462-rich-errors.md github.com/Kotlin/KEEP/discussions/487 github.com/Kotlin/KEEP/blob/main/notes/0009-rich-errors-use-cases.md