alloc / alloc/wana

Shorthand syntax for "Auto" reactions

オープン
#11 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
176
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

説明

"Reactions" are unobserved side effects in response to an observed computation.

The current way to do this:

```ts
auto(() => {
// Observed computation here
noto(() => {
// Unobserved side effects here
})
})
```

The proposed way to do this:

```ts
auto(
() => {
// Observed computation here
},
result => {
// Unobserved side effects here
}
)
```

The bonus (of course) being that you don't need to import `noto`.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。