Skip to content

inline arg/ret #42

@skaldesh

Description

@skaldesh

If a call has very few arguments / return values, it would be neat to inline them, so that a separate struct is not needed. Example:

call test {
    arg: {  
        id string
    }
}

would now produce the func

Test(ctx context.Context, arg *TestArg) (err error)

which must be called like this

err := client.Test(ctx, &api.TestArg{Id: id})

but if one could inline the arguments:

Test(ctx context.Context, id string) (err error)

the call looks much neater imho

err := client.Test(ctx, id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions