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.
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"
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.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"
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.