https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

CLOVIS

02/10/2022, 5:27 PM
I wonder if it's possible to exploit
expect/actual
into checking at compile-time if all endpoints are implemented. Eg, having a common module in which you declare the different endpoints, having a client-side module that depends on it and must implement all the endpoints, and the same server-side. The difficulty is that the implementation on the client-side and the server-side will not look the same at all, and the server-side needs to know the list of endpoints so they can be registered in Ktor
h

hfhbd

02/10/2022, 6:08 PM
regarding ktor: https://ktor.io/docs/locations.html will be Multiplatform in 2.0
4 Views