制御フロー ステートメント内で af# 計算式のカスタム操作を使用すると、型チェックに失敗します。
error FS3086: A custom operation may not be used in conjunction with 'use',
'try/with', 'try/finally', 'if/then/else' or 'match' operators within this
computation expression
これが許可されないのはなぜですか?これを書き換えることができないカスタム操作には何がありますか:
expr {
if a then
custom (x)
else
return (y)
}
このようなものに:
expr {
return!
if a then
expr { custom (x) }
else
expr { return (y) }
}