Join Slack
I just found <https://youtrack.jetbrains.com/issue/KT-24925>, to allow short-hand notation for enum/...
# announcements
w
wasyl
12/09/2020, 10:08 PM
I just found
https://youtrack.jetbrains.com/issue/KT-24925
, to allow short-hand notation for enum/sealed class values when the compiler can infer the type (so
foo(.Baz)
instead of
foo(Foo.Bar.Baz)
. It hope it’s considered for implementation in the relatively near future, would help greatly with verbosity!
n
Nir
12/09/2020, 10:23 PM
Would be nice if it also worked for equality checks and when (I assume it would)
Nir
12/09/2020, 10:23 PM
as that's easily some of the most common code with enum classes
Nir
12/09/2020, 10:23 PM
(and sealed classes)
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by