https://kotlinlang.org logo
#random
Title
e

elect

08/10/2018, 10:27 AM
@elizarov I was looking at your gist, https://gist.github.com/elizarov/03425be1c4209d59ad813ddccab29313 very interesting. Have you (or somebody else) use it in real scenarios? How did it play? Could you share it?
g

gildor

08/10/2018, 10:41 AM
It’s pretty popular patter from functional programming (and not only functional): Try Monad. This is part of stdlib from 1.3: https://blog.jetbrains.com/kotlin/2018/07/see-whats-coming-in-kotlin-1-3-m1/
But check proposal first, this component recommended to use for very limited set of use cases
We use something similar to Result from Roman’s gist. Also there is Try from #arrow
e

elect

08/10/2018, 10:46 AM
yeah, I'm also looking at this, https://github.com/kittinunf/Result
g

gildor

08/10/2018, 11:55 AM
This implementation has additional exception generic looks too awkward for me and our use casesx
3 Views