問題タブ [tagless-final]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
32 問題
0
投票する
1
に答える
640
参照
scala - タグレスファイナルでいずれかをエラーに変更するエレガントな方法
私はよく次のようなことをします:
一言で言えば、それがただの戻り値ならif Either
is left
then useを意味します。raiseError
right
「アンラップ」 するより便利な方法はありEither
ますか?