[wxPython-users] A stupid English language question: new line or newline?

Christopher Barker Chris.Barker at noaa.gov
Thu Aug 17 09:06:05 PDT 2006


jmf wrote:
> When I name a function, I never know if I should write
> 
> AddNewLine in the sense Add + [a] + New + Line
> or
> AddNewline in the sense Add + [a] + Newline

I think newline is a word, at least in computer jargon, but it means 
"\n", rather than a new line added to a file or something. As in:

def AddNewline(string): # add a newline character to a string
     return string+"\n"

def AddNewLine(file, line):# write a new line to a file.
     file.write(AddNewline(line))


English doesn't technically allow one to just make new words by 
stringing existing words together (I think German does, at least 
Volkswagon indicates that: was "Fahrvergnügen" a word before they coined 
it?). However, new words are coined that way, and eventually become 
"official", and before that they can certainly be accepted jargon.

-Chris





-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list