Anonymous wrote:
...let while loop take the form of...without any bracket
..."bracket" should be "paren" or "parentheses" but, that IS the current form...parens are allowed but not required (as least based on the help file)...I actually would like parens to be required & require the space between while & the open paren...
Crash&Burn wrote:
Whether you use...
...as stated in this post, I do not like the other forms of while...by sloppy I mean you can write anything, in any way & it still works...instead of having one
right way to write a while loop...as I said above, while should be written this way & this way only...
Code:
while (expression) {
;//loop contents
}
...required parens, space before open paren, space after close paren, open brace on same line, close brace on line after all contents...
Crash&Burn wrote:
It will do the expected while-loop...
...I do agree that while should only be used for a while loop (not a function that does something else), but I also think that 1 form should be put in the help file/required, so everyone does it the same way...the help file current only says..."While
Expression"...that tells me nothing about using parens around the expression or using braces/blocks...
Chris wrote:
I've created a poll in this topic
...(guests can't vote, so perhaps a new topic with a poll AND mention guests should vote by posting)...since while as a function has no point other than creating the fake while loop when it didn't exist, the poll should probably be "should if & while be changed to require spaces before the open paren"...I'm sure most would vote No, but I would vote Yes...even if...if()...works, I will never write it that way, since if is not a function...& neither is while...as already stated 2 or 3 times in this post...if & while should both be changed to require the same syntax, as my while example above...it makes everything look much nicer & more structured...& even if you will never make that syntax
required...I would suggest you a least use that syntax in the help file, so that new people will learn it right & have a good example to learn from...