Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short path for returning a 'simple' result. #25

Open
martin31821 opened this issue May 7, 2020 · 1 comment
Open

Short path for returning a 'simple' result. #25

martin31821 opened this issue May 7, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@martin31821
Copy link
Member

Something like:

return result(obj1);
// equivalent to
return {
  args: [obj1],
  kwArgs: {},
};
@martin31821 martin31821 added the enhancement New feature or request label May 7, 2020
@martin31821 martin31821 self-assigned this May 7, 2020
@johannwagner
Copy link
Contributor

johannwagner commented May 8, 2020

I propose a solution, which is similar to WampError to maintain a specific API.

return new WampSimple(obj1);
// After Unpacking
return {
  args: [obj1],
  kwArgs: {},
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants