Google Guava / providing functional implementations like collections

Does anyone know if in the future, Guava or Java8 will provide persistent collection implementations based on more functional implementations, for example, in Clojure or Scala (providing snapshots, efficient modifications due to the sharing of tree structures, etc. on )?

+6
source share
2 answers

As for Guava, the discussion group for the project is discussed here, which ends with the project management (Kevin Burrillion), which says that Guava will not be a suitable library for permanent collections.

I do not believe that something like this is planned in Java. A description of the plan for Java 8 here , which talks about the main function - the Jigsaw project and Lambda. There will be other inclusions, but permanent collections are not mentioned.

+5
source

Check out PCollections: http://code.google.com/p/pcollections/

I expect it to be closest to what you are looking for.

+2
source

Source: https://habr.com/ru/post/912789/


All Articles