kotlin makes important things explicit
# language-proposals
k
kotlin makes important things explicit
j
kirillrakhman: doesn’t reified imply you’re using an inline function?
k
yes, but it makes changing the method fragile. suppose you also have a lambda parameter and you remove the
reified
part. whoops, now your method isn't inline anymore
2
j
if you were using a lambda param, intelliJ usually sugests inlining it in any case in which case you would already have an
inline fun
to take care of the lambda
I’m just suggesting that if you specify reified and your fun is not inline already, let the compiler take care of that
IntelliJ can still suggest
inline fun
for the lambda param
reified is then handled invisibly as an inline function if not explicitly set as inline.