Join Slack
Powered by
Is it possible to have an operator function like ...
# getting-started
a
Anthony Flores
03/17/2022, 1:34 AM
Is it possible to have an operator function like
val someProperty: SomeClass = 50%
?
h
Hrishikesh Kumar
03/17/2022, 2:17 AM
It probably won't take % symbol
a
Anthony Flores
03/17/2022, 2:40 AM
The operator function requires a singular param, and there aren't defaults available either, so I guess it isn't possible.
p
Paul Griffith
03/17/2022, 2:36 PM
Might be vaguely possible in some future version:
https://youtrack.jetbrains.com/issue/KT-44409#focus=Comments-27-5841307.0-0
Open in Slack
Previous
Next