3 ms·
Uh huh. Let's see, pragmatic... pragmatic [prægˈmætɪk] adj 1. advocating behaviour that is dictated more by practical consequences than by theory or do
by Lazare 14y ago
Uh huh. Let's see, pragmatic...
pragmatic [prægˈmætɪk] adj 1. advocating behaviour that is
dictated more by practical consequences than by theory or
dogma
Sounds like a good idea. Hey, wonder what this style guide says about semicolons?
Don't write semicolons that are optional
Put a single semicolon before statements that start with
( or [ (see above article as for why it's needed)
No. The pragmatic approach to semicolons is to put the damn things in, because it makes life a little simpler on coders, it fixes a few corner cases (mostly relating to concatenation), and it has no meaningful impact on file size. (Also, as a personal opinion, starting a line with a semicolon looks hideously ugly.)
The dogmatic approach is to leave out as many semicolons as possible, because it adheres to some grand theory you have about the language, even if it causes issues and yields no benefits.
So no, this style guide is not pragmatic.