Comment Comment by invalidname I don't like it. Lots of the examples seem forced e.g.:var _ = q.remove();This is just stupid. We can write: q.remove();We don't need to save the return value in Java. The only case where this makes sense is:instanceof Point(_, int y)But that makes sense because the original code is so bad. A better solution would be type inference like we have in lambdas:instanceof Point(x, y) parent invalidname 3 years ago
var _ = q.remove();
This is just stupid. We can write: q.remove();
We don't need to save the return value in Java. The only case where this makes sense is:
instanceof Point(_, int y)
But that makes sense because the original code is so bad. A better solution would be type inference like we have in lambdas:
instanceof Point(x, y)