运行时错误的正确术语是什么?
我知道当您在代码中出现拼写错误时,这称为语法错误。但是使用超出数组范围的元素之类的错误怎么称呼?
I know when you make a typo in your code, it's called a syntax error. but what do you call errors like using an element out of array bounds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它们被称为运行时错误。
They're called runtime errors.
当然,另一个替代术语是“错误”。我想说,运行时错误包括网络故障和磁盘损坏等环境问题,而错误是代码本身的问题。
The other alternative term is, of course, bugs. I would say that runtime errors includes environmental problems such as network failure and disk corruption, whereas bugs are problems in the code itself.
我认为您要查找的术语是逻辑错误。
我读过的大多数编程入门书籍都将编程错误分为两大类:语法错误和逻辑错误。
I think the term you're looking for is Logic error.
Most introductory programming texts I've read divide programming errors into these two broad categories, syntax and logic errors.