# ECMAScript 6 and potential related flags

I know that compiler flags (such as -D for C/C++) are counted towards byte count, but what about interpreter flags? How would those affect byte count?

Given that the question is specifically about ECMAScript 6, this is more specifically asking if I would have to add 9 to my score for --harmony added to the command node --harmony to use ECMAScript 6?

• Just run it in Firefox's console. :P – Martin Ender Jul 18 '14 at 7:25
• @m.buettner It was also intended to address using Node+ES6, which would be a whole lot more suitable for golfing than with Node+ES5 for a variety of reasons (least of which include fewer uses of function and prototype). – Isiah Meadows Jul 18 '14 at 23:12
• Note that you might be able to abbreviate --harmony to --h or --ha – user16402 Jul 27 '14 at 7:27
• @professorfish No, but it doesn't count, anyways, because it's selecting a language version, not defining something. – Isiah Meadows Jul 27 '14 at 7:36

(By the same logic, you could technically say that using C++11 would require a +10 character count because of the -std=c++11 compilation flag, and then you could include all sorts of goodies like the object file names and whatnot, which would increase each C++ submission's length by around 50.)
I would not count flags that choose versions of a language. So, gcc -std=c99 and perl -M5.010 add zero to the score. Likewise, python2.7 (as my computer calls it) adds zero to the score. I also would not count flags like -f in awk -f program.awk, as -f only specifies which file to run.
I do count other flags. I wrote a sed program in 300 characters. I posted it as 299 characters, but changed the count to 299+1 because I used sed -r. After golfing this flag, sed -rf program.sed is 1 more character than sed -f progrma.sed.
Some flags might decrease the character count (or byte count) of a program. I like to avoid flags: I would not type cc -DW=while, I would put #define W while (15 characters) in my program. I would not type perl -n, I would put the shebang #!perl -n (9 characters) on the first line. By doing this, I increase my score and fail at golf.
• +1 for the first paragraph, -1 for the last. Why wouldn't you use -Dw=while and count it towards the character count if that makes your code shorter? Also, shebangs are generally not counted in code-golf. You would only count -n towards the character count. – nyuszika7h Jul 22 '14 at 9:31