curious on thoughts of representing function types...
# ksp
e
curious on thoughts of representing function types. Right now it seems like the are converted to their class references, so
Copy code
(Int) -> String
has the type
Copy code
kotlin.Function1<Int, String>
and
Copy code
suspend (Int) -> String
has the type
Copy code
kotlin.coroutines.SuspendFunction1<Int, String>
would it make sense to represent these more specially as function types? Or maybe have some helpers to detect if a type is a function type, what it's args/return type is, if it's suspend etc?
t
We have a tracking issue around function types here: https://github.com/google/ksp/issues/118 It's mainly about helpers to be added for now, because it seems that all the mentioned features can be built on top of current API.
👀 1