Voytech
06/13/2021, 12:14 PMdave
06/13/2021, 12:50 PMasad.awadia
06/13/2021, 2:41 PMCLOVIS
06/13/2021, 4:36 PMapi module shared between client & server, then have all endpoints in client as extension functions on a Client class.
The only times when you don't want to use extension functions is if you need inheritance or if you need interop with other languages. Every other time, just use what you feel is cleaner (for example, look at the source code of String in the standard library: 95% of it are extensions, same with Sequence)Zun
06/13/2021, 9:22 PMVoytech
06/14/2021, 6:05 PMDave K
06/16/2021, 11:38 AMVoytech
06/16/2021, 12:30 PMVoytech
06/17/2021, 6:31 AM