Skip to content

Conversation

@ezynda3
Copy link
Contributor

@ezynda3 ezynda3 commented Sep 19, 2025

No description provided.

- Add Result wrapper type with AsString(), AsInt(), AsFloat64(), AsBool(), AsSlice(), AsMap() methods
- Add Bind() method for unmarshaling to structs using JSON
- Add helper constructors R() and NewResult()
- Add generic As[T]() and MustAs[T]() functions
- Add comprehensive test coverage for all Result methods
- Improves developer experience by eliminating manual type casting in Node implementations
- Replace all 'any' return types with flyt.Result in Prep and Exec functions
- Show usage of Result's type-safe accessors (AsString, AsInt, AsBool, etc.)
- Demonstrate Result's Bind and MustBind methods for structured data
- Use R() helper to wrap return values
- Encourage best practices by showing type-safe patterns throughout examples
@ezynda3 ezynda3 merged commit 1816c26 into main Sep 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants