public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Change all occurrences of 'flavour' to 'flavor'
Date: Sat, 9 Aug 2003 00:23:07 -0700	[thread overview]
Message-ID: <20030809072307.GC8503@pegasys.ws> (raw)
In-Reply-To: <3F33BF33.8070601@techsource.com>

On Fri, Aug 08, 2003 at 11:18:11AM -0400, Timothy Miller wrote:
> 
> 
> Jasper Spaans wrote:
> >On Thu, Aug 07, 2003 at 09:42:37PM -0400, Zwane Mwaikambo wrote:
> >
> >
> >>>It changes all occurrences of 'flavour' to 'flavor' in the complete tree;
> >>>I've just comiled all affected files (that is, the config resulting from
> >>>make allyesconfig minus already broken stuff) succesfully on i386.
> >>
> >>Arrrgh! You can't be serious!
> >
> >
> >Yes, I am bloody serious; this patch might look purely cosmetic at first
> >sight.. yet, there's a technical reason for at least one part of it. Grep
> >and see the horror:
> >
> >$ egrep -ni 'flavou?r' fs/nfs/inode.c
> >[snip]
> >1357:	rpc_authflavor_t authflavour;
> >[snip]
> 
> 
> Ah, for a moment, I was worried that someone was talking about text in 
> comments.
> 
> Yes, when it comes to spelling of words in variable and type names, I 
> think it would be a good idea to be consistent.
> 
> What is Linus's preferred spelling?  Let's use that.

Or look at history.  I picked the two samples easiest for
me: 2.4.18 and 2.2.10.  In neither does fs/nfs/inode.c have
"flavour" in comment or symbol.  A search of the entire
kernel tree shows "flavour" only appearing in comments in
2.2.10 but 2.4.18 has some variables and macros named
"flavour" or "flavours" but they seem to be in the minority.

	$ cd /usr/src/linux-2.4.18.SuSE
	$ find . -name '*.[ch]' | xargs grep -li 'flavour' |wc -l
	     18
	$ find . -name '*.[ch]' | xargs grep -li 'flavor' |wc -l
	     36

Hardly scientific it lumps comments (which nobody should
care about) with variables, functions and macros, and there
will be an overlap between the two sets of files.

I'd say flavour has crept in.  While i think that "flavour"
has more panache than "flavor" i'd suggest regularising it
in the way that makes the least change.

I'm also inclined to suggest that a preferred spelling be
specified in the CodingStyle document.  Inconsistency in
this doesn't much affect readability but it does impact
maintainability.



	
-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

  parent reply	other threads:[~2003-08-09  7:23 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-07 18:00 [PATCH] Change all occurrences of 'flavour' to 'flavor' Jasper Spaans
2003-08-07 22:37 ` Alan Cox
2003-08-08  0:04   ` Martin J. Bligh
2003-08-08 16:54     ` Steven Cole
2003-08-08  5:46   ` [PATCH] Change all occurrences of 'flavour' to 'flavor', torvalds@osdl.org Jasper Spaans
     [not found]     ` <200308080153.22495.jcwren@jcwren.com>
2003-08-08  5:58       ` [ot] Re: [PATCH] Change all occurrences of 'flavour' to 'flavor' Jasper Spaans
2003-08-08  7:13   ` Jens Axboe
2003-08-08  1:42 ` Zwane Mwaikambo
2003-08-08  6:52   ` Jasper Spaans
2003-08-08  6:57     ` Zwane Mwaikambo
2003-08-08  7:15       ` Jens Axboe
2003-08-08 11:04         ` [OT] " Adrian Bunk
2003-08-08 16:58           ` Svein Ove Aas
2003-08-08 21:51             ` Ian Hastie
2003-08-08  7:33       ` Jasper Spaans
2003-08-08  7:40         ` Jens Axboe
2003-08-08  8:00           ` Jasper Spaans
2003-08-08  8:54             ` Jens Axboe
2003-08-08  7:45         ` Zwane Mwaikambo
2003-08-08  7:07     ` Alexander Winston
2003-08-08  7:31       ` Jasper Spaans
2003-08-08  7:11     ` Tomas Szepe
2003-08-08 15:18     ` Timothy Miller
2003-08-08 15:34       ` Richard B. Johnson
2003-08-08 15:48         ` Trond Myklebust
2003-08-08 16:42           ` Gene Heskett
2003-08-08 17:03             ` Jasper Spaans
2003-08-08 17:34               ` Alan Cox
2003-08-08 18:02                 ` Gene Heskett
2003-08-08 15:50         ` Jasper Spaans
2003-08-08 16:00           ` Richard B. Johnson
2003-08-08 17:18       ` Linus Torvalds
2003-08-08 17:33         ` Jasper Spaans
2003-08-09  0:24         ` Trond Myklebust
2003-08-09  0:41           ` Linus Torvalds
2003-08-09  0:45             ` Jasper Spaans
2003-08-09 19:56               ` [PATCH] Fix up fs/nfs/inode.c wrt flavo[u]r Jasper Spaans
2003-08-09 19:51                 ` Zwane Mwaikambo
2003-08-09 21:41                 ` [PATCH] Fix up fs/nfs/inode.c wrt flavo[u]r, try 2 Jasper Spaans
2003-08-09  1:04             ` [PATCH] Change all occurrences of 'flavour' to 'flavor' Trond Myklebust
2003-08-09  1:17             ` Ian Hastie
2003-08-09  7:23       ` jw schultz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-07 20:40 Andries.Brouwer
2003-08-08  8:25 Andries.Brouwer
2004-01-13 13:35 Andries.Brouwer
2004-01-13 13:42 Randal, Phil
2004-01-13 14:07 ` Måns Rullgård
2004-01-13 14:26 Nicholas Berry
2004-01-13 22:46 ` Peter Horton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030809072307.GC8503@pegasys.ws \
    --to=jw@pegasys.ws \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox