Hello guys, I'm trying to build intuition on findi...
# arrow
t
Hello guys, I'm trying to build intuition on finding fp patterns in real life applications, so can you correct me if I worng? Can I look at JSON as a functor? It seems to me that fmap can be written something like that:
deserialize().let(::f).serialize()
. But is it applicative? Or I am following the wrong direction and there are more suitable abstractions to reason about JSON? Also Parcelable from Android and JSON both are looking pretty similar to me. Are there any chances to prove this similarity in fp terms?
r
Personally I see Json as a great case for Type Classes (KEEP-87), which is how Json parsers generally work in Scala. It would be interesting to see what happens to Helios if we get Typeclass Support.
r
This may serve as inspiration, still in an old version of Arrow but Json AST ops is essentially resolved with optics https://github.com/47deg/helios