Algebraic data types were introduced in Hope, a small functional programming language developed in the 1970s at the University of Edinburgh
另外提一嘴,现在 java 的官方示例里都是能 var 都 var 的
最后的示例直接不装了,大大方方得承认 pattern matching is clearly more concise than vistors, but it's also more flexible and powerful.
不知多少年后国内的八股文会开始问 DOP ?
还有一篇 Java 语言的 project lead Brian Goetz 的文章
https://www.infoq.com/articles/data-oriented-programming-java/
另外提一嘴,现在 java 的官方示例里都是能 var 都 var 的
最后的示例直接不装了,大大方方得承认 pattern matching is clearly more concise than vistors, but it's also more flexible and powerful.
不知多少年后国内的八股文会开始问 DOP ?
还有一篇 Java 语言的 project lead Brian Goetz 的文章
https://www.infoq.com/articles/data-oriented-programming-java/