Greenspun在Perl的第10条规则?

前端之家收集整理的这篇文章主要介绍了Greenspun在Perl的第10条规则?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Greenspun’s Tenth Rule of Programming是计算机编程中的常见格言,尤其是编程语言圈.它指出:

Any sufficiently complicated C or Fortran program contains an ad hoc,informally-specified,bug-ridden,slow implementation of half of Common Lisp.

问题是,

>你会认为Perl翻译是真的吗?只有客观论点(例如,Common Lisp的哪些功能在解释器中实现)
>独立地,是否存在完全在Perl中实现的Lisp(或者至少是一个临时的,非正式指定的,错误驱动的,一半Common Lisp的慢速实现)?

@H_502_21@解决方法
你可能喜欢Mark Jason Dominus的 Higher-Order Perlpreface(以及本书的其余部分),其主题基本上是你的问题.他说:

If you pick up a good book about Lisp,there will be a section that describes Lisp’s good features. For example,the book Paradigms of Artificial Intelligence Programming,by Peter Norvig,includes a section titled What Makes Lisp Different? that describes seven features of Lisp. Perl shares six of these features; …

Mark has many other things to say about Lisp and Perl

所以,Perl实际上已经是Lisp了,但我说既不慢也不是一半.然而,Mark指出的关于Perl和Lisp之间差异的一点是Perlers处理非结构化字符串(一般情况下),而Lispers只要有可能就处理结构化数据. Perl可以做到这一点,但Perlers倾向于不这样做.

猜你在找的Perl相关文章