"适配器和QUOT;或“适配器” [英] "Adapter" or "adaptor"?
问题描述
在编程中,哪个拼写适配器或适配器是标准的或事实上的标准?他们之间有区别吗?
In programming, which spelling—adapter or adaptor—is standard or de facto standard? Is there a difference between them?
在升级中我看到适配器,而在文献中我看到适配器。
In boost I see "adaptor", whereas in literature I see "adapter".
代码中首选哪一个?
推荐答案
他们都是正确的,虽然我认为, em>适配器用于人(例如适应一段音乐的人),而适配器用于设备或机器;因此,在计算中,通常将使用适配器。维基百科提及这种区别,尽管没有任何真正的参考。我会使用你觉得更舒服的人,或者你已经使用的代码库中已经使用的那个,如果这个词已经被使用了。
They are both correct, though I think there's a slight preference for adapter to be used for people (such as someone who adapts a piece of music), while adaptor is used for a device or machine; thus, in computing, adaptor would generally be used. Wikipedia mentions this distinction, though without any real references to back it up. I would use whichever you feel more comfortable with, or the one in already in use in the code base you're working in if the word has been used already.
这篇关于"适配器和QUOT;或“适配器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!