3 ms·
I'm not much of a PL nerd, what should it do?
by commandersaki 1y ago
I'm not much of a PL nerd, what should it do?
- blandflakes 1y agoReturn false! They aren't equal. But of course we're comparing a reference to a primitive, so we either lift the primitive to a reference, or lower the reference... so here we are.
- mrkeen 1y agoFail to compile when you assign something which isn't an integer to an integer.
- michaelcampbell 1y agoNone of that code does that; the "issue" is with `==` between an int and an Integer. I'd accept a failure to compile _that_, but that does kind of kill the utility of the 99.9% of times where auto-boxing and unboxing is syntactically simpler.