I'd rather stick with having to write (below) than...
# language-proposals
m
I'd rather stick with having to write (below) than doing something crazy like
val str = ...
Copy code
when {
            str == "foo" -> foo()
            str.contains("bar") -> bar()
            "baz" in str -> baz()
        }
👍 1