分号首先作为分隔符出现在哪种编程语言中?
以类似的方式关于泛型的问题:在哪种编程语言中分号首次出现,它是如何传播到 C 的?
In similar manner to this question about generics: In which programming language did the semicolon make its first appearance, and how did it spread to C?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
绝对是 ALGOL。
嗯,有人改变了问题。这不完全是板球。
至于它是如何传播的,好分号传播 Algol 60 ->模拟 -> C. K+R 说 Pascal 没有影响他们,IIRC,尽管有些人对此说法提出异议。
语句终止符(换行符除外)从 COBOL 传播 ->快活-> C. 虽然作为终结者每个人都有不同的性格。
Definitely ALGOL.
Hmm, somebody changed the question. That's not quite cricket.
As for how it spread, well semicolons spread Algol 60 -> Simula -> C. K+R said that Pascal didnt influence them, IIRC, though some disputed this claim.
Statement terminators (other than new-line) spread from COBOL -> Jovial -> C. Though each had a different character as the teminator.
它不是 C 中的分隔符 - 它是终止符。
然而,我相信 ALGOL 可能是第一个以这种方式使用分号的人。
It's not a separator in C - it's a terminator.
However, I believe ALGOL may have been the first to use the semicolon in this sort of way.
Pascal 在 C 之前使用分号作为终止符;不过,不确定这是否是第一种拥有它们的语言。
Pascal had semicolons as terminators before C did; not sure if it was the first language to have them, though.
ALGOL 也是我的猜测。
其意义在于,它将用户从打孔卡式的固定格式中解放出来。
如果您必须使用 Fortran 77,您就会知道这意味着什么。
ALGOL is my guess too.
The significance is that it freed the user from punch-card-style fixed format.
If you have to use Fortran 77, you know what that means.