Hey everyone :wave: Not sure where is the right pl...
# compiler
s
Hey everyone 👋 Not sure where is the right place to ask this question, but is there any guidelines to when a library should use
callsInPlace(lambda, EXACTLY_ONCE)
? Looking at the Kotlin Std, it's to me also not clear when it should be used. I would've though that
runCatching
for example can/should use
EXACTLY_ONCE
but that results in a false-negative of the "Unreachable code" inspection.
Relevant comment on a PR in Arrow with a bunch of examples, questions and references to Kotlin Std where
EXACTLY_ONCE
is used.