rtsketo
09/15/2021, 6:50 AMfun f(x: Int) = x * 15 + 30
so if we type f(10)
in our code would be replaced with 180
later on (or even instantly).
Not sure if it's ok to ask here, it seemed to me too random of a question to ask anywhere else.
Edit: Even if it's possible somehow with the @Deprecated
annotation, let me know.Tobias Berger
09/15/2021, 7:13 AMlouiscad
09/15/2021, 7:56 AMMatteo Mirk
09/15/2021, 8:00 AMrtsketo
09/15/2021, 8:01 AMlouiscad
09/15/2021, 8:03 AMrtsketo
09/15/2021, 8:06 AMlouiscad
09/15/2021, 8:29 AMrtsketo
09/15/2021, 5:14 PMlouiscad
09/15/2021, 8:24 PMf(10)
by the actual known valuertsketo
09/16/2021, 6:15 AMf
and having it to be replaced automatically by the inner function (x * 15 + 30
), I think it's a better solution.rtsketo
09/29/2021, 10:29 AM