字母 O 被认为有害吗?

发布于 2024-09-27 01:05:26 字数 1431 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陌上芳菲 2024-10-04 01:05:26

你确实是对的!

是的,有这样的提案(标题为“字母‘O’被认为有害”)
1976 年 11 月在布鲁克海文国家实验室举行的 X3J3 会议上提供给投票成员的官方文件中。 (在同一次会议上,委员会选择了“Fortran 77”,即六个小写字母,作为这次语言修订的名称。)

我能够证实这一点,因为我不仅是这次会议的主持人,而且也是这次会议的主持人 。这个匿名“提案”的实际作者。因此,我请打字员(我老板的秘书贝蒂)以正确的格式打印这份虚假的“提案”,并将其放入会议地点(伯克纳大厅 B 会议室)提供的正式分发中。

Loren Meissner 对此感到非常好笑,以至于他在自己担任编辑的 Fortran 出版物上写了一篇小文章。沃尔特·布雷纳德在他的出版物中也提到了这一点。我已经向他们俩发誓要对我的小恶作剧保密,所以那些文章并没有识别出我的身份。 (抱歉,我不记得这两份出版物的名称了。)

赞成和反对论据列表(这是当时 X3J3 提案的典型)包括:

  • 将 Fortran 字符数恢复到 48 个(通过省略“O”)来平衡添加冒号“:”)
  • 解决由嵌套 DO 循环引起的歧义。
  • 消除 FORMAT 语句中(已弃用的)Hollerith 规范的问题。
  • 防止滥用 GO TO 语句。

而“con”列表仅包含一个反对意见(带有免责声明):

  • 该提案可能会使某些现有的 FORTRAN 程序无效,但无论如何,其中大多数程序可能是“符合标准”的。

You are indeed correct!

Yes, there was such a proposal (entitled "Letter 'O' Considered Harmful")
in the official set of documents supplied to voting members at the November 1976 meeting of X3J3 that was held at Brookhaven National Laboratory. (At this same meeting, committee chose "Fortran 77", with six lower-case letters, as the name for this revision of the language.)

I am able to verify this because I was not only the host for this meeting but also the actual author of this anonymous "proposal". As such, I enlisted the typist (my boss' secretary, Bette) to type up this phony "proposal" in the proper format and slip it into the official distribution provided at the meetingplace (Conference Room B of Berkner Hall).

Loren Meissner was so amused by it that he wrote a little item in a Fortran publication for which he was editor. Walt Brainerd also mentioned it in his publication. I had sworn both of them to secrecy regarding my little prank, so those articles did not identify me. (Sorry, I don't recall the names of these two publications.)

The lists of pro and con arguments (as was typical of X3J3 proposals in those days) included:

  • Restoring the number of Fortran characters to 48 (by omitting 'O'to counterbalance the addition of the colon ':')
  • Solving ambiguities caused by nested DO loops.
  • Eliminating problems with (deprecated) Hollerith specifications in FORMAT statements.
  • Preventing misuse of GO TO statements.

while the "con" list contained only one objection (with a disclaimer):

  • This proposal may invalidate some existing FORTRAN programs, but most of these are probably "standard-conforming" anyway.
陌若浮生 2024-10-04 01:05:26

我想这个人应该问:Bruce A. Martin。他似乎*是最初将这篇文章发布在维基百科上的人,并且他同时自称在布鲁克海文(这篇文章在那里流传)工作。

他在维基百科上对该文章的引用是:

X3J3 1976 年 11 月在布鲁克海文国家实验室举行的会议的会后分发。

(* 发布该内容的用户的用户页面链接到作为其材料的网站)

I think this is the guy to ask: Bruce A. Martin. He seems* to be the one who originally posted it on Wikipedia, and he puts himself as working at Brookhaven (where the article was circulated) at the same time.

The citation he gives on Wikipedia for the article is:

X3J3 post-meeting distribution for meeting held at Brookhaven National Laboratory in November 1976.

(* the user page for the user that posted it links to the website as being their material)

硬不硬你别怂 2024-10-04 01:05:26

维基百科上提到,称为笑话/民间传说。说实话,我并不感到惊讶。

Mentioned on Wikipedia, referred to as a joke / folklore. Doesn't surprise me TBH.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文