Open aloerina01 opened 5 years ago
高校の数ⅢCとかやってたときによく陥った「何言ってるのか全然咀嚼できない」状態に久々になった感じ。恥ずかしいことに全然わからず3周くらい読み返した。でもまだちゃんと分かってないことは分かる。
JS風に書かれたイメージを掴むためのソース
// effect invocation effect Foo /* : int -> int */; // handler handle(console.log(perform/* invocation */ Foo(3) + 10)) { case x: { x; } case Foo(x), k: { k(x * x); } } //==> prints `19`
algebric effectsの基本は
らしい。
throw new Promise
e1 + e2
[ ] + e2
[ ]
E[x]
x
static getDerivedStateFromError
componentDidCatch
高校の数ⅢCとかやってたときによく陥った「何言ってるのか全然咀嚼できない」状態に久々になった感じ。恥ずかしいことに全然わからず3周くらい読み返した。でもまだちゃんと分かってないことは分かる。
Algebraic Effectsとは? 出身は? 使い方は? その特徴とは? 調べてみました! - Qiita
JS風に書かれたイメージを掴むためのソース
algebric effectsの基本は
らしい。
throw new Promise
を使って実装されているdelimited continuationの夏 / lilyum ensemble
e1 + e2
という式があって左辺から計算されていくとする[ ] + e2
と表現する([ ]
をholeと呼ぶ)E[x]
などと表現するx
がはいっていく感じ