Closed dphfox closed 5 months ago
https://elttob.uk/Fusion/0.3/api-reference/general/members/safe/
Safe expressions can be used to guard against errors while passing return values through, allowing for easier inline dealing with errors.
Safe
[Children] = Safe { try = function() return scope:FallibleComponent { ThrowError = "You didn't do the right thing :(" } end, fallback = function(err) return scope:ErrorMessage { Text = `Something went wrong: {err}` } end }
They should be documented as part of the Best Practices tutorial section, so that users can understand their purpose and usage.
https://elttob.uk/Fusion/0.3/api-reference/general/members/safe/
Safe
expressions can be used to guard against errors while passing return values through, allowing for easier inline dealing with errors.They should be documented as part of the Best Practices tutorial section, so that users can understand their purpose and usage.