Add ++/-- and +=/-= function - OpenEdge Development - Products Enhancements - Progress Community

 OpenEdge Development

Add ++/-- and +=/-= function

  • Under Review

It would be very useful to be able to increment integers by simply putting variable++, and to add to a variable by going variableA += variableB (which would assign variableA + variableB to variableA).

Most other languages have this basic functionality so I think it should be built-in here too.

  • This is especially useful for string concatenation.

    I'd also add the less used `*=` and `/=` just to round out the list. This sort of syntactic sugar is a big boon for developers. It saves a small amount each time, but it comes up very often.

  • I think we could add operator overloading to this request as well...