What new features will be added to Scala 2.9?

后端 未结 4 899
余生分开走
余生分开走 2021-02-12 17:45

I know parallel collections will become available.

What form will these take, and what else are we likely to see?

4条回答
  •  名媛妹妹
    2021-02-12 18:00

    For the full list, see: Beyond 2.8 - A Roadmap

    The main thing seems to be parallel collections. They are drop-in replacement for the scala collections, but the methods are executed in parallel.

    From the scala days presentation by Aleksandar Prokopec:

    Scala parallel collections that will be introduced in 2.8 reimplement standard collection operations while keeping compatibility with existing Scala collection framework. They also introduce new operations characteristic for parallel algorithms, and a few contracts the programmer should be aware of.

    For a good video explanation of parallel collections, see Scala Parallel Collections - Aleksandar Prokopec

提交回复
热议问题