https://kotlinlang.org logo
Title
p

Paul Woitaschek

08/26/2018, 11:08 AM
Sometimes I wish to have a compiler flag for not inlining anything for debugging
o

orangy

08/26/2018, 12:14 PM
This is not possible due to non-local returns
😅 1
l

louiscad

08/26/2018, 10:59 PM
@orangy Are you saying it would be possible for all inlined methods that don't use non local returns?
o

orangy

08/26/2018, 11:00 PM
It’s not functions that use non-local returns, it’s lambdas that are passed into.
l

louiscad

08/26/2018, 11:01 PM
Yes, that's why I said "inlined" and not "inline". When the lambda doesn't use non local returns, it'd be possible, right?
o

orangy

08/26/2018, 11:02 PM
Yes, why not? You can call them from Java after all
l

louiscad

08/26/2018, 11:05 PM
So @Paul Woitaschek dream is partly possible. Not that I need it though (I never write bugs in Kotlin lol), but interesting to know if it ever becomes important for some debugging problems that don't involve non local returns
o

orangy

08/26/2018, 11:13 PM
I would invest into making debugging more robust and useful with inlining 🙂
👍 1