QB64-Phoenix-Edition / QB64pe

The QB64 Phoenix Edition Repository
https://qb64phoenix.com
Other
125 stars 26 forks source link

Pre- and Post- Increment and Decrement Operators #482

Open lavender-programming opened 5 months ago

lavender-programming commented 5 months ago

Now, not to copy C++ to much, but I'm incredibly lazy, so a quick shortcut to add 1, or subtract 1, would be nice. a++ Add 1 to a, or if we wanted to ++a. Same with a--/--a.

But to not copy C++, this could be similar to the ? shortcut for Print. Where doing a++ would become a = a + 1.

vivid-pixel commented 3 months ago

In AppGameKit's AGKScript, they created INC and DEC commands to handle this. Perhaps that syntax would be appropriate for QB64.