The very first version of GM implemented inc and dec operators. I just compared source with v1.0 and unfortunately it seems the first public release was slightly too late and did not include the code. In hind sight removing those operators was wrong. Although the idea of preventing assignment in selection statements is noble, one goal of GM was to be friendly to C/C++ programmers, and that means supporting as much of the classic C syntax as possible. I do recall Matt saying that removing those operators significantly simplified the code, however I don't recall how much was grammar and how much was code gen code. I'll report back if I can find any more details on this.
|