a little java里的例子为啥写法那么奇怪
Though the book\u0026#39;s title contains Java, it\u0026#39;s not a book about Java. Under the surface, it\u0026#39;s teaching functional programming using Java.
This is the key to understanding those examples. For exmaple, the first chapter is really about Union datatype (or sum datatype) you would normally find in functional programming languages such as ML.
In this book, it doesn\u0026#39;t use any collection concepts like set, map, or list. Instead, the author teaches you to create those concepts from the very basic building blocks Java provides.
【a little java里的例子为啥写法那么奇怪】 If you are familiar with list type in haskell or ML, those examples used in the book should be quite natural.
■网友
个人觉得作者这里只是借用这些食物来表达类型的概念。这种问题还是去SF提问比较好http://stackoverflow.com/questions/35111005/class-design-in-a-little-java-a-little-pattern/
推荐阅读
- dart这编程语言现在发展怎么样了,语法与Java,c#很相似,甚至更简洁
- Java工程师和C++工程师在工作上有啥区别哪个更适合自身发展
- 27岁,转行java的血与泪,该何去何从
- 怎样统计工程中未使用的java类
- 新互联网网站用Java还靠谱么对比Php,Python,Ruby的话
- 我想学java和安卓软件开发?
- 学计算机专业,java那些和网站开发选台式还是笔记本好
- JAVA设计思路
- 本人大专毕业一年,想要去培训,定了JAVAEE和安卓两个方向,应该学那个纠结,求帮助
- C语言指数函数代码
