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

Support multiple return types via auto and enhanced tuple expressions #373

Closed
rsmckinney opened this issue Jun 10, 2022 · 1 comment
Closed

Comments

@rsmckinney
Copy link
Member

rsmckinney commented Jun 10, 2022

Support multiple return types via auto and enhanced tuple expressions.

For better readability omit the requirement for parenthesis for tuple expressions used as multiple return types.

auto result = aggregate();
int min = result.min;
int max = result.max;
int avg = result.avg;

auto aggregate() {
  return min(), max(), avg();
}
rsmckinney added a commit that referenced this issue Jun 17, 2022
- Provide `auto` type inference for local vars, fields, and method return types

#372
- Support type-safe tuple expressions

#373
- Support multiple return types via `auto` and enhanced tuple expressions

#375
- Support only LTS versions of JDKs and the latest release
rsmckinney added a commit to manifold-systems/manifold-ij that referenced this issue Jun 17, 2022
manifold-systems/manifold#371
- Provide `auto` type inference for local vars, fields, and method return types

manifold-systems/manifold#372
- Support type-safe tuple expressions

manifold-systems/manifold#373
- Support multiple return types via `auto` and enhanced tuple expressions
@rsmckinney
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant