As a stickler for detail and consistency, this has been driving me nuts ever since the framework was announcedApple’s inconsistency regarding whether there’s a space in the name is borderline comical我的意思是，只要看看Apple Developer Connection page for “Internet & Web”technologies, where both spellings appear nearly side by side:
A year or so ago, I checked with someone in Apple’s documentation group, and he stated categorically that the official spelling was “Web Kit”, with the space毫不奇怪，Web Kit Objective-C Reference, which is produced by Apple’s documentation group, consistently uses “Web Kit”And, on the schizo ADC web page referenced above, “Web Kit” appears seven times; “WebKit” only twice.
但是，在这一页，“WebKit”打败了“Web Kit”八零. Plus, theWebKit开源项目’s web site is mostly consistent with its use of the “WebKit” spelling, and judging from theirSurfin的Safari博客条目和他们的帖子to the mailing list, the developers working on the code have settled upon the closed-up “WebKit”.
As near as I can tell, the official names for each of the Cocoa kits include a space:
但是，所有Cocoa套装的祖父都是Application Kit, a.k.aAppKit的“Application Kit” is the official name of the framework, but “AppKit” is an accepted and frequently-used abbreviation — for example, the title of the aforelinked document is “AppKit The Application Kit”.
So I think what has happened with Web Kit is that the framework’s name does (and should, for the sake of consistency) have a space, but that because the closed-up “AppKit” is both accepted and commonly used, the closed-up “WebKit” is what comes naturally to Cocoa programmers即that in the same way that Application Kit is commonly abbreviated “AppKit”, Web Kit is commonly abbreviated “WebKit”.1
We don’t frequently see this erroneous closing-up of kit names with I/O Kit or PDF Kit because closing up their names looks bad. (All-capital words seldom read well in CamelCase.) “SearchKit”, on the other hand, looks reasonable, and judging by谷歌的结果, it does in fact get used.
But unlike Application Kit/AppKit, which feels like a legitimate and useful abbreviation in that the short form is both easier to pronounce and to type, Web Kit/WebKit just looks like inconsistent spellingThey’re pronounced the same, and unless you have two broken thumbs, it’d be hard to argue that “WebKit” is easier to type.
将它们插入GoogleFightand “WebKit” absolutely kicks “Web Kit”’s ass; but that doesn’t make it rightMy gut feeling is thus that “WebKit” is a mistakeBut I don’t really care which spelling Apple settles on, I just want it settled.
The fact that WebCore, the lower-level HTML rendering engine at the heart of Web Kit, is universally spelled with no breaking space probably contributes to the use of “WebKit” as well更不用说整个“网站”vs“网站”可以蠕虫。↩︎