Treat Java's of
convention the same Scala's apply
#17872
dhinojosa
started this conversation in
Feature Requests
Replies: 0 comments 1 reply
-
If I remember correctly, Java's apply is not treated as Scala's apply either. If I'm right, I would suggest to add Java's apply to this suggestion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great to leave out any calls to
of
in the Java API much like we do withapply
.Whereas
is the same as
it would be great to include the Java convention
to
Advantage - Consistency in creational patterns with no regard to either Java or Scala. Everything looks like a smart constructor
Disadvantage - I assume there would be compiler complexity in scanning.
Beta Was this translation helpful? Give feedback.
All reactions