Scala is an object oriented language with functional aspects. Some people like the object oriented aspect, some are attracted by the functional part. Add to that the fact that it’s sitting on top of JVM and of course it’s influenced by Java a lot, we still have nulls, we still have exceptions, IO and state mutation, etc. And since Scala isn’t purely functional it still allows us to write imperative code, call a Java library that will throw an exception, etc. I personally think that functional code is easier to read and understand, unit test and maintain(not event talking about state and multiple threads). So when it comes to writing purely functional code (or as close to it as possible) Scala sure misses certain things and scalaz has a lot built to help. I decided to write series or posts to explain scalaz. I’ll start with the basics, most common abstractions then explain more real words cases. I’ll put the links to all posts here so it’s easy to navigate.
- Semigroup, Monoid, Equal, Order, Enum, Show and Standard Scala Classes
- Methods Scalaz Adds To Standard Classes - Integer, String and Boolean
- Scalaz Functor
- Scalaz Apply
- Scalaz Applicative
- Scalaz Bind
- Scalaz Cobind
- Scalaz Monad
- Scalaz Comonad
- Scalaz Plus, PlusEmpty, IsEmpty, ApplicativePlus and MonadPlus
- Scalaz Foldable