logoalt Hacker News

21asdffdsa12today at 7:11 AM1 replyview on HN

Don't you also need to specify the error-cases at each stage and at what level of the system you would like to handle them (Log away, throw ever more up, Inform others, create Tasks, etc.)?

I found that to be really vital for good code. https://fsharpforfunandprofit.com/rop/


Replies

trane_projecttoday at 7:16 AM

It's mostly rust projects so error handling is writing `?` and defining the signatures as either Option or Result for the most part.