raulraja
10/12/2021, 9:19 PMexpect
declarations only in common main and have multiple actual
different impl on each platform. For example 3 JVM modules that provide 3 different actual
impls for the common main and same for other platforms like JS. The use case is that users may define programs over the common library but choose different runtime impl in actual typealias F<A> = CustomImpl<A>
data types for a given expect class depending on how they want their programs to run. Essentially I’d like to push the responsibility to declare the actual typealias
to the user and not be forced to provide an impl myself. Can this be accomplished with multiplatform modules? Any help is appreciated, I realise this is an odd case and potentially trying to abuse expect / actual for ad-hoc resolution. Thanks!Mejdi
10/12/2021, 9:37 PMrusshwolf
10/12/2021, 10:10 PMinterface
rather than an expect class
for this scenario.raulraja
10/13/2021, 3:02 PM