level 1
16inch三联装炮
楼主
http://www.lysator.liu.se/c/bwk-on-pascal.html
《为何 Pascal 不是我喜欢的编程语言》中 Kernighan 总结了如下问题:
1. Since the size of an array is part of its type, it is not possible to write general-purpose routines, that is, to deal with arrays of different sizes. In particular, string handling is very difficult.
1. 因为数组之大小是其类型的一部分,故不可能写通用的子程序,即处理不同大小的数组者。尤其是字符串处理非常困难。
2. The lack of static variables, initialization and a way to communicate non-hierarchically combine to destroy the ``locality'' of a program - variables require much more scope than they ought to.
2. 静态变量、初始化的缺乏和交流方式非层次性地组合在一起,将程序的“局部性”破坏——变量要求多于其应有的作用域。
3. The one-pass nature of the language forces procedures and functions to be presented in an unnatural order; the enforced separation of various declarations scatters program components that logically belong together.
3. 语言的单趟特性强制过程和函数以非自然的顺序出现;各种声明的强制分离将逻辑上共在的程序内容割碎。
4. The lack of separate compilation impedes the development of large programs and makes the use of libraries impossible.
4. 缺乏分离编译阻碍大型程序开发,并使得库的使用不可行。
5. The order of logical expression evaluation cannot be controlled, which leads to convoluted code and extraneous variables.
5. 逻辑表达式的顺序不可控,这导致回卷的代码和额外变量。
6. The 'case' statement is emasculated because there is no default clause.
6. case 语句被阉割了,因为没有默认子句。
7. The standard I/O is defective. There is no sensible provision for dealing with files or program arguments as part of the standard language, and no extension mechanism.
7. 标准 I/O 有缺陷。提供文件或程序参数作的处理作为语言标准的一部分没有意义,并且没有扩展机制。
8. The language lacks most of the tools needed for assembling large programs, most notably file inclusion.
8. 语言缺乏组建大型程序的大部分工具,最主要的是文件包含。
9. There is no escape.
9. 没有转义序列。
2017年03月17日 10点03分
1
《为何 Pascal 不是我喜欢的编程语言》中 Kernighan 总结了如下问题:
1. Since the size of an array is part of its type, it is not possible to write general-purpose routines, that is, to deal with arrays of different sizes. In particular, string handling is very difficult.
1. 因为数组之大小是其类型的一部分,故不可能写通用的子程序,即处理不同大小的数组者。尤其是字符串处理非常困难。
2. The lack of static variables, initialization and a way to communicate non-hierarchically combine to destroy the ``locality'' of a program - variables require much more scope than they ought to.
2. 静态变量、初始化的缺乏和交流方式非层次性地组合在一起,将程序的“局部性”破坏——变量要求多于其应有的作用域。
3. The one-pass nature of the language forces procedures and functions to be presented in an unnatural order; the enforced separation of various declarations scatters program components that logically belong together.
3. 语言的单趟特性强制过程和函数以非自然的顺序出现;各种声明的强制分离将逻辑上共在的程序内容割碎。
4. The lack of separate compilation impedes the development of large programs and makes the use of libraries impossible.
4. 缺乏分离编译阻碍大型程序开发,并使得库的使用不可行。
5. The order of logical expression evaluation cannot be controlled, which leads to convoluted code and extraneous variables.
5. 逻辑表达式的顺序不可控,这导致回卷的代码和额外变量。
6. The 'case' statement is emasculated because there is no default clause.
6. case 语句被阉割了,因为没有默认子句。
7. The standard I/O is defective. There is no sensible provision for dealing with files or program arguments as part of the standard language, and no extension mechanism.
7. 标准 I/O 有缺陷。提供文件或程序参数作的处理作为语言标准的一部分没有意义,并且没有扩展机制。
8. The language lacks most of the tools needed for assembling large programs, most notably file inclusion.
8. 语言缺乏组建大型程序的大部分工具,最主要的是文件包含。
9. There is no escape.
9. 没有转义序列。