6 ms·
> Java as contrast has interning wtfs because == between java objects does essentioally what python's `is` does. It's pretty sensible because i wouldn't expect
by never_inline 1y ago
> Java as contrast has interning wtfs because == between java objects does essentioally what python's `is` does.
It's pretty sensible because i wouldn't expect that operator to call a method - since Java does not have operator overloading.
- procaryote 1y agoYeah, it's not that bad, but `if foo == "bar"` or `foo == Integer(someInt)` looks reasonable, and worse, sometimes works