Go Down

Topic: %= operator missing in docs (Read 1 time) previous topic - next topic


Well, the main reason I brought it up was that all the other similar operators (+=, -=, *=, etc.) are listed, and %= is strangely missing.  Normally who are familiar with the operator, myself included, just assume it is there.  I was puzzled though when every other operator was listed, but %= was not, which is why I hope for the inclusion of %=.


think I'll stick to "easier-to-read" rather than save a byte or two

Note that the bytes you save are only in your source code. Both should compile to the same object code.  There is no performance benefit to the more compact version.

There's a lot to be said for easier to read. I've been programming for 30 years and "x%=3" would make me stop and scratch my heat.

Go Up