<@U2E974ELT> That would actually solve my use-case...
# language-proposals
j
@elizarov That would actually solve my use-case as well
Copy code
val k : String? = while (i != 3) {
    ....
    if (...) {
        break "SomeValue"
    }
    ...
} ?: "DefaultValue"
In which case only a value is returned on break otherwise k stays uninitialized unless you use the elvis.