addamsson
01/23/2019, 12:21 PMgildor
01/23/2019, 12:42 PMaddamsson
01/23/2019, 12:46 PMEma
01/23/2019, 12:57 PMDico
01/23/2019, 1:02 PMEma
01/23/2019, 1:26 PMgildor
01/23/2019, 1:52 PMdo you know about a library which does this?Does what? proxy? It’s platform specific API so should be done on platfrom specific code.
addamsson
01/23/2019, 2:46 PMDavide Giuseppe Farella
01/23/2019, 6:28 PMProxy
on Jvm and TODO()
on KN & JS, since they aren’t my priority actually and hoping in a better solution than code-gen, please keep in touch here on StackOF, I’ve starred your post, just in caseaddamsson
01/23/2019, 6:29 PMTODO()
this literally made me laugh out loud 😄Davide Giuseppe Farella
01/23/2019, 6:30 PMTODO()
is the developers’s 42 😄gildor
01/24/2019, 1:23 AMDavide Giuseppe Farella
01/24/2019, 6:06 AMgildor
01/24/2019, 6:08 AMDavide Giuseppe Farella
01/24/2019, 6:16 AMaddamsson
01/24/2019, 1:47 PMProxy
as an external
classFoo
interface you get back a Proxy
and not an object which implements Foo
Davide Giuseppe Farella
01/24/2019, 1:51 PMinterface Foo {
fun bar(): Int
}
become
class Proxy {
fun bar() = 4 // for instance
}
?addamsson
01/24/2019, 1:51 PMval foo: Foo = createProxyFrom(Foo::class)
Davide Giuseppe Farella
01/24/2019, 1:54 PMFoo
interface implementation become ( basically )
class FooImpl: Foo {
override fun bar() = 4
}
addamsson
01/24/2019, 1:56 PMProxy
instead of a Foo
Proxy
to a Foo
Davide Giuseppe Farella
01/24/2019, 1:58 PMaddamsson
01/24/2019, 4:57 PM