agentm / agentm/project-m36

Consider using "checked exceptions" for client APIs

オープン
#101 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
952
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。