当前位置:当前位置: 首页 >

为什么有的人喜欢盲目抵制 goto 语法?

时间:2025-06-18 12:00:13    来源:    人气:

goto变得臭名昭著其实是好多年前的事情了。

1968年,Edgar Dijkstra写了一篇论文,名字叫《Go To Statement Considered Harmful》。

Dijkstra正是发明了Dijkstra算法的那位大佬,所以他的话当然很有分量。

这篇论文现在仍然可以找到,这里就能看到: ***s://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf "The quality of programmers is a decreasing function of the density of go to statements in the programs they produce." "For a program of any comple…。

为什么有的人喜欢盲目抵制 goto 语法?

相关文章

  • ...

发表评论

验证码: 看不清?点击更换

注:网友评论仅供其表达个人看法,并不代表本站立场。

排行榜

{dede:type}更多>>{/dede:type}

排行榜

更多>>

排行榜

更多>>

公众号