effect
effect copied to clipboard
From Discord: Safer Stringifier for fiberRuntime.absurd() and BigInt Serialization
Summary
The discussion revolves around improving the absurd function in the Effect-TS ecosystem. The issue at hand is that when unexpected errors occur and absurd is called, it tries to serialize the error using JSON.stringify, which fails for certain types like bigints. This results in a loss of context in the error message. The key takeaway is that absurd should be enhanced to handle serialization of various types, including bigints, to provide more informative error messages.
Discord thread
https://discord.com/channels/795981131316985866/1183930312091250738