Join Slack
Powered by
can Kotlin somehow match nested classes with `when...
# announcements
k
Karlo Lozovina
08/21/2020, 5:04 PM
can Kotlin somehow match nested classes with
when
expression? something like Haskell can do, like
(Foo (Bar (Baz x))) -> ... something(x)
?
s
Shawn
08/21/2020, 5:09 PM
Nope. Relevant discussion:
https://github.com/Kotlin/KEEP/pull/213
k
Karlo Lozovina
08/21/2020, 5:11 PM
cool, hopefully it lands sooner than later! thanks...
2
Views
Open in Slack
Previous
Next