Where do I find purely functional open source projects written in Scala? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionI'm looking for open source projects that are written in Scala in a purely functional style, i.e. that don't use var
s or mutable data structures (or that use them as litte as necessary). I would prefer applications over frameworks and libraries because I want to see how functional objects are "glu开发者_开发技巧ed together".
Note that this question is similar to https://stackoverflow.com/q/2135966/460387 but the focus here is the purley functional style of the projects.
It's a library, but I think Scalaz is an excellent example of pure functional style in Scala.
You can have a look at specs2. It is mostly functional as explained here, except for:
- the use of 1 mutable variable to give some DSL flexibility in one place
- the use of exceptions (optionally) for the same reason
- outputs which are eventually using the Console or the FileSystem
Here is a non-exhaustive list of (mostly) functional applications and libraries written in Scala based on the answers to this question. Please feel free to add more projects to this list.
Applications:
Libraries:
- Scalaz includes general functions that are not currently available in the core Scala API.
- specs2 is a library for writing executable software specifications.
精彩评论