Godot Optional's icon

Godot Optional 3.0 Scripts 4.2 Community

Submitted by user Tienne_k; MIT; 2024-03-18

Introduces to Godot types inspired by the Rust programming language.
- Option explicitly denotes that a value can be a null and must be handled

- Result explicitly denotes that an operation can fail and must be handled

- Custom Errors that carry with them details about the exception, including a cause and display message! It also acts as a place to have a centralized list of errors specific to your application, as GlobalScope.Error doesn't cover most cases.

- TimedVars that keep track of when they were created, and can delete themselves after a set amount of time.

- Enum structs (experimental): Enums that aren't just integers, but also carry user defined data with them! Good for state handling!

Examples, documentation, and playground (see examples/misc) also included!
PRs are welcome!!


View files Download Submit an issue Recent Edits