Re:JetBrains Fleet drops support for Kotlin Multiplatform
by tadfisher on Thursday February 13, 2025 @12:50PM
(#43038927)
The difference is you can just call
val a = a();
And start the stack unwinding. The `try/catch` is not mandatory to call a().
Re:JetBrains Fleet drops support for Kotlin Multiplatform
by vips7L on Thursday February 13, 2025 @06:08PM
(#43042639)
You definitely just don't know how checked exceptions work. This is not true at all. The compiler will not let you call a(); without handling the exception or checking it up the stack. The same way results work.
- In concurrent programming uncaught exceptions won’t leave the future. Both values are available to you just like Results. I also don’t think arguments for concurrent programming are valid though. 99% of all code is single threaded.
- It is checked.
- Result infects the call stack as well.
- handling the error case with a checked exception is also mandatory with handling the success case. There is no separate “execution regime”. What is the difference here: