Community
Participate
Working Groups
Hi. Currently it seems that the NOT operator is treated the same as a unary operator. I want my unary operators ++ formatted with a whitespace "before" the operator, so ... "result=++index" becomes "result = ++index". With this definition the NOT Operator has also a leading whitespace ... "if (!condition)" becomes "if( !condition)" Would be great if I can define the NOT Operation with NO leading whitespace but my unary operators WITH leading whitespace. Cheers - Marcel.
Not sure if I will do that. You can also write: if ( ++i > 10) { } In this case, do you want the space? Logical Complement Operator ! is an unary operator and it is treated as is.
Please annotate the bug report. Without feedback, I will close as WONTFIX. I am not convinced that actual options cannot handle your case. In order to get: result=++index => result = ++index if (!condition) => if(!condition) You can add a space after the '=' and no space before the unary operator.
Close as WONTFIX.