[mtasc] For loop bug

Ron Wheeler rwheeler at artifact-software.com
Mon Mar 28 05:50:01 CEST 2005


for(; a<b; a++) is too confusing to be legal. 
Lets not make everything legal even if MMC does.

This sort of coding practice leads to madness and should be punished as well as prohibited.

Sorry for the rant but I have picked up too many examples of other people's code that had silliness like this in it where a miniscule saving in typing causes grief and heartache later.

Force the programmer to put a=0 or a=1 or a=7 so that we all can read the code quickly without having to refer to some reference text to find out where "a" starts. 

If its legal in the ECMA standard, then I would like see if a posse can be put together to find and neuter the genius who put this in the standard.



Ron

Michael Bianco wrote:

>Mtasc throws an error if you define a for() loop like this:
>for(; a<b; a++)
>it doesn't like the single colon at the beginning, MMC works fine with this.
>--
>MTASC : no more coffee break while compiling
>
>
>  
>




More information about the mtasc mailing list