3 ms·
Always for ( and [ when they start a statement. It really is that simple.
by adrianhel 8y ago
Always for ( and [ when they start a statement.
It really is that simple.
- adrianhel 8y agoAnd for template strings: ` I do agree that good use cases are few and far between.
- dvlsg 8y agoI honestly can't remember a recent time I had to start a line with a ( or a [. I don't really write IIFEs since let and const. I'm sure the outputs from babel/typescript/etc use them, but I don't really need to write them myself, now that we have proper block scoping. And if I want to declare an array and immediately iterate over it, I just put it in a variable first. That gives it a name, too, which tends to improve readability anyways. I work with Javascript / Typescript projects on both sides of the argument, and I have to say not using semicolons never seems to cause any problems. Especially not with auto formatting / linters around.