Is there a good comparison between Functional Java and Guava?

前端 未结 3 922
生来不讨喜
生来不讨喜 2020-12-31 09:47

I\'d like to use either Functional Java or Guava (or less likely Scala) in a course I\'ll be teaching. Although there are lots of functional languages that run on the JVM I

3条回答
  •  伪装坚强ぢ
    2020-12-31 09:53

    As stated above, Guava is just a Java library -- a Java 5 compatible library, even (as of release 11). The position of Guava on functional programming is summed up by Kevin Bourrillion:

    “The syntax sucks. At the same time, this stuff is now, has always been and will always be nothing but a stopgap measure until the right language change can come along, at which time we can finally really decide on the optimal syntax and have functional-style programming start actually making lives better in Java for once. So I’m undecided how much effort to put into the Function/Predicate stuff; it’s in the library more because it sort of had to be, not so much because we think it’s a crown jewel.”

提交回复
热议问题