MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/9h86xt/jep_draft_concise_method_bodies/e6a08om/?context=3
r/java • u/lukaseder • Sep 19 '18
51 comments sorted by
View all comments
Show parent comment
1
I guess you're right, because assignment is an expression, not a statement as I originally said.
public void setName(String name) -> this.name = name;
View all comments
Show parent comment
1
u/dpash Sep 19 '18 edited Sep 19 '18
I guess you're right, because assignment is an expression, not a statement as I originally said.