agentm / agentm/project-m36

Consider using "checked exceptions" for client APIs

Đang mở
#101 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Haskell
Star
952
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Not like Java. Just had to get that out of the way.

This blog post and the library he's talking about demonstrates a pretty cool way of keeping exceptions in the types: https://functor.tokyo/blog/2017-05-10-servant-checked-exceptions#.WR5lMEsqJ-4.reddit

I.e. instead of putting all possible exception cases in `RelationalError`, you could pull them out logically and use his API as an example of how to do make a cleaner client API. Possibly.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.