Re: 7.0 wishlist?



Joshua Cranmer wrote:
Harold Yarmouth wrote:
Joshua Cranmer wrote:
((array[i++] << 8) & 0xff) | (array[i++] & 0xff)

That is side effects.

That is bit-twiddling, not matrix multiplication.

It is very much the same vein.

Hardly.

In fact, that is the kind of code I used to fire people for writing in C, before I decided that I preferred programming to managing programmers and went back to basics.

Well, its outcome is undefined in C since when i is incremented is unspecified.

Its outcome being well-defined in Java doesn't matter -- it's ugly, hard-to-parse code of the sort that gives maintenance programmers the heebie-jeebies.
.