- 论坛徽章:
- 12
|
本帖最后由 wait_rabbit 于 2012-03-30 00:41 编辑
学习perl已经有三个星期,《programming perl》(4th)里的重要主题也都基本看过(近三个星期几乎每晚都是两点过了才睡,感觉又回到了校园时代 )。 今天开始翻《higher order perl》,在preface里翻到这样的两段话:
“Around 1993 I started reading books about Lisp, and I discovered something important: Perl is much more like Lisp than it is like C. 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; C shares none of them. These are big, important features, features like first-class functions, dynamic access to the symbol table, and automatic storage management. Lisp programmers have been using these features since 1957. They know a lot about how to use these language features in powerful ways. If Perl programmers can find out the things that Lisp programmers already know, they will learn a lot of things that will make their Perl programming jobs easier.”
“This book was directly inspired by two earlier books: ML for the Working Programmer, by Lawrence Paulson, and Structure and Interpretation of Computer Programs, by Harold Abelson and Gerald Jay Sussman. Other important influences were Introduction to Functional Programming, by Richard Bird and Philip Wadler, and Paradigms of Artificial Intelligence Programming, by Peter Norvig.”
作者说那本人工智能的书中描述了lisp的七种特征,perl具其六,c一种都木有;而这本书的灵感也是直接来自于ML和SICP等经典函数式语言书籍。
个人对函数式编程也非常感兴趣。本来一开始的打算是在精通perl之后再研究函数式编程,那么现在通过《higher order perl》这本书来提前达到目的是否可行?如果理想的话,既能提高perl的技能,也能掌握函数式编程。
但是本人对函数式编程并不特别了解,所以希望版里的诸位大贤指点:我是应该接着研究《mastering perl》和《Perl Best Practices》这一类的书,磨砺足够的技能,假以时日,然后再找专门的 lisp 或者 haskell 的相关书籍来学习函数式编程,还是可以趁此攻读《higher order perl》以达到目标?
谢谢
|
|