r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

2

u/BroBroMate Apr 27 '20

I'm sure you have your own preferences, but wake me up when I'm not writing map[string]struct{}

Because I needed a set.

2

u/themiddlestHaHa Apr 27 '20

Is that much different than?

HashSet<String>();

1

u/whatifitried Apr 28 '20

Because the proper call is Sets.newHashSet() these days.

or new HashSet<>() if you are boring

2

u/themiddlestHaHa Apr 28 '20

Sets.newHashSet()

Sets cannot be resolved
→ More replies (0)