reik.schatz
02/18/2019, 1:10 PMDynamic
but this is not what you mean probablyGarouDan
02/18/2019, 1:16 PMreik.schatz
02/18/2019, 1:19 PMThe dynamic type is not supported in code targeting the JVM
reik.schatz
02/18/2019, 1:19 PMreik.schatz
02/18/2019, 1:23 PMDynamic
then you could call an “unknown” method I believe (the compiler does the magic). But if you use any other type, it would give you compile errors. I haven’t seen the same thing in Kotlin but maybe it exists. I haven’t used Kotlin that longGarouDan
02/18/2019, 1:24 PMJonathan Mew
02/18/2019, 1:25 PMmurphy
02/18/2019, 1:26 PMDynamic
type in Scala compile to calls of the reflection API.murphy
02/18/2019, 1:27 PMJonathan Mew
02/18/2019, 1:27 PMreik.schatz
02/18/2019, 1:29 PM>> Scala’s Dynamic type allows you to access instance members that aren’t statically defined in a class. It’s a marker trait with no members - it provides a hint to the compiler to rewrite method calls and field accesses to missing members
reik.schatz
02/18/2019, 1:29 PMdyn.foo //dyn.selectDynamic(“foo”)
reik.schatz
02/18/2019, 1:30 PMmurphy
02/18/2019, 1:30 PM