pakoito
12/18/2018, 3:30 PMHow can I replace finally block in classic try { } catch ?Finally exists because an uncaught exception returns from the enclosing scope.
Try { }
returns a value instead, you can act on the result of that value in any way you want.rudolf.hladik
12/18/2018, 3:34 PMraulraja
12/18/2018, 3:40 PMraulraja
12/18/2018, 3:42 PMsimon.vergauwen
12/18/2018, 3:46 PMrudolf.hladik
12/18/2018, 3:46 PMsimon.vergauwen
12/18/2018, 3:51 PMForTry extensions
is deprecated in 0.8.1
but still availablesimon.vergauwen
12/18/2018, 3:53 PMForTry extensions
you should be able to do `import arrow.instances.try
.monad.*` or more specific `import arrow.instances.try
.monad.binding`simon.vergauwen
12/18/2018, 3:53 PMsimon.vergauwen
12/18/2018, 3:54 PMfix()
is not required there anymore IIRC since we enable bind()
on Kind<ForTry, A>
directly instead of on Try<A>
which means you don’t need fix()
rudolf.hladik
12/18/2018, 3:57 PMimport arrow.instances.`try`.monad.*
is it in arrow-instances-core or arrow-instances-data ?simon.vergauwen
12/18/2018, 4:00 PMarrow-instances-core
stojan
12/25/2018, 4:24 PMpakoito
12/25/2018, 10:11 PMpakoito
12/25/2018, 10:11 PMpakoito
12/25/2018, 10:11 PMpakoito
12/25/2018, 10:11 PMpakoito
12/25/2018, 10:11 PMpakoito
12/25/2018, 10:18 PMpakoito
12/25/2018, 10:18 PMrrader
12/26/2018, 9:40 AMOption
in stdlib https://youtrack.jetbrains.com/issue/KT-29026 ?raulraja
12/26/2018, 9:13 PMOption
ext functions and instances also to ?
so you can use the entire Option syntax and methods available in Arrow over ?
in the same way you can today over Option
.raulraja
12/26/2018, 9:14 PMA?
and Option<A>
and we can exploit that to enrich the ?
api with all the stuff that would be nice to have like fold
, map
, mapN
, etc.pakoito
12/26/2018, 10:02 PMEgor Trutenko
12/26/2018, 10:04 PMEgor Trutenko
12/26/2018, 10:05 PMstreetsofboston
12/26/2018, 10:06 PMpakoito
12/26/2018, 10:06 PMpakoito
12/26/2018, 10:06 PMpakoito
12/26/2018, 10:07 PM