You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/throwable_effect_api.md
+10-63Lines changed: 10 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
## Overview
4
4
5
-
`ThrowableEffect<State, Result>` is a simplified, stack-safe alternative to `Effect<State, Message, Result>`. It removes the Message type parameter, making the API less verbose while maintaining full functionality through the use of a `Trampoline` for stack safety.
5
+
`ThrowableEffect<State, Result>` is a simplified, stack-safe alternative to `Effect<State, Message, Result>`. It removes the Message type parameter, making the API less verbose while maintaining full stack-safe functionality.
6
6
7
7
## Key Features
8
8
9
9
-**Less Verbose** - Only 2 type parameters instead of 3
10
-
-**Stack-Safe** - Uses `Trampoline` to prevent StackOverflowError on deep compositions
10
+
-**Stack-Safe** - Prevents StackOverflowError on deep compositions (chain thousands of operations safely)
11
11
-**Built-in Error Channel** - Throwable handling is part of the type
12
12
-**Message Type at Match** - Type constraint only where needed
13
13
-**Fully Compatible** - All operators from Effect are available
`ThrowableEffect` provides a cleaner, stack-safe API for building functional actors in Cajun. Its simplified type signature and built-in trampoline make it ideal for complex effect compositions while maintaining full compatibility with the existing Effect ecosystem.
266
+
`ThrowableEffect` provides a cleaner, stack-safe API for building functional actors in Cajun. Its simplified type signature makes it ideal for complex effect compositions while maintaining full compatibility with the existing Effect ecosystem.
0 commit comments