DEV Community

Discussion on: The Behavior of `i = i++` in Java

Collapse
 
arjayosma profile image
Arjay

It really differs with the languages on how they are being evaluated by their compilers. This syntax may work with one language, and not on the other one.

I had a programming language subject before and it was in there that we were enlightened by how different languages' syntax are being evaluated. I completely agree it is interesting to see how different languages support similar syntaxes.

Great article by the way @Jeremey Grifski!

Collapse
 
vicentemaldonado profile image
Vicente Maldonado

Yes, I would stay away from that syntax altogether. Surprises are not a good thing in programming :-)