3 ms·
It's hard to say about that, since there is ... which can contain anything (like for example another opening { ). It's a good practice to always use braces wit
by shmerl 12y ago
It's hard to say about that, since there is ... which can contain anything (like for example another opening { ).
It's a good practice to always use braces with if / else even if it's just one line in them.
- _RPM 12y agoI don't think you are right. Regardless if what is after that contained in the `...` wouldn't matter. A lone `{` or `}` would be a syntax error.
- shmerl 12y agoAs I said, it wouldn't be a syntax error if ... contained the matching { somewhere inside. That lone } which seemingly belongs to if in this case would be closing the function.