问题描述
自从我开始学习Objective-C和Cocoa以来,我一直想知道为什么他们为实现文件选择了扩展名.m-应该是某些含义还是仅仅是一个随机字母?
今天,大多数人将它们称为方法文件",但是
(摘自《 在Mac上学习Objective-C ",作者是马克·达林普(Mark Dalrymple)和斯科特·纳纳特(Scott Knaster),第9页)
编辑:为了满足自己的需求,我通过电子邮件发送了 Brad Cox , Objective-C的发明者,关于这个问题,他用以下单行回答:
这是电子邮件的视觉证明:
Since I started learning Objective-C and Cocoa, I've been wondering why they have chosen the extension .m for the implementation files - was it supposed to mean something, or was it just a random letter?
Today most people would refer to them as "method files", but
(from the book "Learn Objective-C on the Mac" by Mark Dalrymple and Scott Knaster, page 9)
EDIT: To satisfy an itch I emailed Brad Cox, the inventor of Objective-C, about the question and he answered with this single line:
Here's the email as visual proof:
这篇关于为什么Objective-C文件使用.m扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!