farrow-js / farrow

A Type-Friendly Web Framework for Node.js
https://www.farrowjs.com
MIT License
771 stars 37 forks source link

errorhandling #16

Open StefanHoutzager opened 3 years ago

StefanHoutzager commented 3 years ago

Interesting work. Have you looked into "type safe errorhandling"? For example https://dev.to/_gdelgado/type-safe-error-handling-in-typescript-1p4n explains it a bit.

Lucifier129 commented 3 years ago

Yeah, I have learned Haskell and Rust, but haven't seen the article above before.

uinz commented 3 years ago

To be honest, I tend to confuse errors and exceptions at work,but I think they are very different

Lucifier129 commented 3 years ago

@uinz Maybe thinking with the inhabitants of type can help.

Choice the appropriate one to model the problem we are facing in some domains.