4 ms·
Funny to see that some of them use `_`s instead of `-`s as the separator character.
by mihaitodor 4y ago
Funny to see that some of them use `_`s instead of `-`s as the separator character.
- compiler-guy 4y agoThe underscore is the preferred method for naming flags inside Google.
- drjasonharrison 4y agoit also simplifies the search for the flag in the source code. Rather than having to switch between `-` and `_`, you have only one textual representation for the flag. I personally like to use `-` in filenames and flag names because it's one less shift key to press. But it leads to the requirement to translate the `-` into `_` in the code. Eg, `resource-filename.json` becomes something like `resource_filename` in the code.