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

Single parameter functions should implement Java's Function interface #727

Open
SimonCockx opened this issue Feb 6, 2024 · 0 comments
Open
Labels
enhancement New feature or request subject: code generation This issue is about code generation

Comments

@SimonCockx
Copy link
Contributor

Functions that accept a single input should implement Java's Function interface. That would make the generated code more convenient for consumers.

func Foo:
  inputs: a int (1..1)
  output: b string (1..1)

should generate

public class Foo implements RosettaFunction,/* ADD THIS*/ Function<Integer, String> {
  ...
}
@SimonCockx SimonCockx added enhancement New feature or request subject: code generation This issue is about code generation labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request subject: code generation This issue is about code generation
Projects
None yet
Development

No branches or pull requests

1 participant