https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
g

groostav

07/12/2016, 9:03 PM
so, im sorry for hogging so much of the air time in this channel, I'll try to slow it down, this is a request I've had kicking around in my head for some time: can we loosen the expected expression on the right side of an elvis to allow for a code block? my particular use case --which ive run into more than once:
Copy code
val x = someObject?.someMethod() ?: { Logger.warning("no alpha beta value!"; continue }