Partially dynamic?


#1

Hi,

I tried:

  class Foo: dynamic {
  val fooName = “abc”
  }

It didn’t like it. Is there any way to use a type like that – that has some properties with static types, but with anything else it’s like dynamic?  This for Javascript backend.

thanks,
Rob


#2

We have something like this designed (not through inheritance, but through saying that 'dynamic<Foo>' behaves like Foo when applicable, but like dynamic otherwise). But this has not been implemented yet