DEV Community

loading...

Discussion on: F# Error Handling with 'Result'

Collapse
shimmer profile image
Brian Berns

I’m a fan of computation expressions, since they hide most of the boilerplate. One thing I don’t understand, though: Why would you ever get “No overloads match for method 'Bind'” as an error message from makeHttpRequest? That sounds more like a compiler error than an HTTP runtime error.

Collapse
jhewlett profile image
Justin Hewlett Author

Yes, it's a compiler error when your types don't line up in the CE. I'm just saying that it's hard to know what you're doing wrong as you're writing it when you get cryptic compiler errors like that.

I'll clarify by changing "error message" to "compiler error"

Collapse
shimmer profile image
Brian Berns

Ah, I see. I agree that’s not a helpful compiler error at all. Might even be worth reporting it to the F# team as an issue.