Skip to content

Allow Result<IntoLuaMulti>'s to be used with IntoLuaMulti #710

Description

@WilsontheWolf

Right now, a Result can be used as a IntoLuaMulti when it has IntoLua. This follows the convention of lua errors. However, it's not possible to return multiple values when using this structure. For example, a Result<(int, String)> cannot be used as a return value.

I would expect that the result would just return the passed value. Not sure if it makes sense to have multi value errors.

I know I can return a MultiValue directly, however, with the help of a utilitiy function, I have it where my function returns the Result that is parsed directly, so I use the ? operator a few spots that would make my code much longer if I used a multivalue directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions