3 ms·
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 w
by akkad33 1y 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
- tpxl 1y agoMy 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.
- integralid 1y agoThanks 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 :)