agentm / agentm/project-m36

Consider using "checked exceptions" for client APIs

Abierto
#101 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Haskell
Estrellas
952
Forks
50
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.