I wonder if it’s possible to generate the server side, too. Like I will implement the same interface on the server to do actual logic, and compiler plugin will generate all the routing and parameters unpacking and send out the result.
orangy
05/06/2023, 8:57 AM
Generated API could be as simple as
Copy code
routing {
handle(MyInterfaceImpl(db, …))
}
handle will be generated function, resolved by interface type and receiving instance of interface implementation
f
Foso
05/06/2023, 10:50 AM
I think it should be possible to write such a tool