Closed aleclarson closed 6 years ago
UncaughtEffectError: Effect was never caught by a handler: 'myEffect'
...stack trace...
Crazy idea: Prepend the @
symbol to any function call to assume purity. Maybe perform some memoization? Any uncaught effects would crash at the callsite.
let foo = fn (a, b) {
effect a + b * Math.random()
}
let res = @foo(a, b)
Effects are not impure
What happens to uncaught effects?