Join Slack
Powered by
A potential solution could be something like `when...
# announcements
o
orangy
04/03/2017, 5:33 PM
A potential solution could be something like
when (val x = expr()) { is Foo -> x.fooMember() }
, but that’s quite complex
m
mg6maciej
04/03/2017, 5:40 PM
I don't think having such construct adds a lot of value. This can be already done if extracted outside of
when
.
👍 1
o
orangy
04/03/2017, 5:53 PM
Except for some scoping, which is pretty valuable by itself, but indeed makes this feature less likely to be implemented any time soon.
m
mg6maciej
04/03/2017, 7:46 PM
🤔 I always thought functions are great for scoping 😉
Open in Slack
Previous
Next