16 ms·
When I program in C-syntax languages, I always surround loop and conditional blocks with braces, even if they have a single line of code. Even though these lang
by ern 15y ago
When I program in C-syntax languages, I always surround loop and conditional blocks with braces, even if they have a single line of code. Even though these languages allow braces to be omitted, I consider it bad style, and error prone (although I have never seen a real bug where a programmer made an error of including multiple statements without braces). The languages do allow this style, and however distasteful I personally find it, I would expect compilers to handle it properly.
I think the same should apply here, the minifier should handle the language as specified, if it can't then it is has a bug.