Re:Becoming Productive in Haskell
by tormeh on Friday April 24, 2015 @09:32AM
(#9433137)
In Scala there aren't any names for functors that I'm aware of. I just though one day that "wouldn't it be practical if I could map an option instead of match-casing the meaning out?" and lo and behold it worked. Maybe we just don't need that much terminology.
[ Parent
| on HN ]
Re:Becoming Productive in Haskell
by whateveracct on Friday April 24, 2015 @01:04PM
(#9434584)
That's because the Scala stdlib doesn't abstract over things that can be mapped over. If you want to do that, then you need a typeclass. Scalaz has a typeclass for mappable things and it's called Functor.