Re: [PATCH] Add config variable core.symrefsonly
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 15, 2005, 18:39 UTC
- Message-ID
- <Pine.LNX.4.64.0511151028540.3945@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.63.0511151923120.1103@wbgn013.biozentrum.uni-wuerzburg.de>
On Tue, 15 Nov 2005, Johannes Schindelin wrote:
> > Linus, is there any reason you don´t allow spaces, underscores > and dashes in the config variables?
I much preferred being anal and maybe relaxing the rules later than being permissive and accepting horrible crap.
Spaces are definitely out, since we are trying to igore whitespace everywhere, but underscores and dashes might be ok.
However, the traditional way to do these kinds of things in ini files is with PrettyCaps(tm), ie you'd do
[core] SymRefsOnly = true
rather than the C way.
Let's face it, the C way is the only true way for a programming language, but having case matter in something unimportant and human-readable like a "ini" file is just bothersome, so PrettyCase(tm) actually makes sense there.
PrettyCase is for toys - unimportant things where it's more important to say "we don't care" over saying "we need to be precise". So Pascal is PC. It's a toy language. FAT is PC - it's a toy filesystem. And ini files are PC: it's more important that a config file is human-readable than it is that it's very precise and strict.
Put another way: real programmers want strict rules, because they know they'll be hurt without them. But _users_ need to be coddled. And ini files aren't for programmers, they are for users.
Linus