Hacker News new | ask | show | jobs
by akkad33 285 days ago
In python, those give a mutable set, which is what I was referring to above. Also not to put too a fine a point, you'll never see python code like that in the wild, but even in code reviews these days, it's common to find Java code written like in my example because the syntax for sets in Java came after Java 8
2 comments

Thanks for specifying, as I said I'm not a java programmer. I stand corrected.

>it's common to find Java code written like in my example because the syntax for sets in Java came after Java 8

So I think we went full circle back to GP claim:

> The language itself is quite beautiful when used properly and with modern features

:)

My bad on the mutability. As far as code like that written in Java, I don't think I've ever seen something like that in anything non-toy and I started with Java 7.