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

Should we add LambdaWriter support? #133

Closed
JakeWharton opened this issue Dec 10, 2014 · 3 comments
Closed

Should we add LambdaWriter support? #133

JakeWharton opened this issue Dec 10, 2014 · 3 comments

Comments

@JakeWharton
Copy link
Member

Lambdas are interesting syntactical elements. Should we have first-party support for them or just rely on normal Snippet behavior for them?

A first-party type for supporting lambdas would deal with:

  • Choosing whether or not argument parenthesis should be emitted.
  • Comma-separating the argument list.
  • Type declarations in arguments (e.g., (Runnable r) -> r.run()).
  • Emitting the arrow.
  • Choosing whether or not braces are emitted.
@JakeWharton
Copy link
Member Author

I'm leaning on the no side of this after thinking about it. It's also something that can easily be added later, if we determine enough uses for it exist vs. standard Snippet building.

@gk5885
Copy link
Collaborator

gk5885 commented Dec 15, 2014

I think not as well.

@JakeWharton
Copy link
Member Author

👍

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

No branches or pull requests

2 participants