Extending Xojo Operators ( ++, --, +=, -=, /= and *= )

For the most often used 1-inc- and decrements, I am fully happy with the ReformatCode script. It replaces a
variable++
by
variable = variable + 1
which IMHO is the better solution as it supports verbosity and easy readability of Xojo and saves the typing time.

A

If count++ > 5 Then Exit

Being used by people used to post-increments will create the cryptic error:

If Count = Count + 1 > 5 Then Exit

So, it’s a no for me.

1 Like

All the more reason never to have macros. I would prefer an “Inline” option on methods.