Skip to content

Make ToGodot and FromGodot conversions use Result #451

Closed
@lilizoey

Description

@lilizoey

In #421 we created a unified api for converting types across ffi. However every ToGodot conversion was assumed infallible, and FromGodot uses Option<T> to signal fallibility. This was to limit the scope of that PR, but means that error reporting isn't as good as it could be. It likely also meant a small regression is error messages.

We should change these to use Result instead to be able to handle errors better and with better error messaging.

Metadata

Metadata

Assignees

Labels

c: registerRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the library

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions