Join Slack
Powered by
It is probably unintuitive from java convert's poi...
# announcements
c
Czar
09/21/2017, 11:09 AM
It is probably unintuitive from java convert's point of view, but it is logical, constructor is a function with the same name as the class, so
::StringBuilder
is the reference to that function.
b
bdawg.io
09/21/2017, 11:13 AM
I would have guessed
StringBuilder::StringBuilder
personally, but good to know!
c
Czar
09/21/2017, 11:17 AM
Yep, you're right. I'm glad that it's not like that though - brevity 🙂
d
dragas
09/21/2017, 11:57 AM
Yeah, pretty much. I didn't expect it to be like that considering that's how you refer to top level static methods.
Open in Slack
Previous
Next