2 ms·
I don't think it's considered a code smell, but it is intended to be used only for cases where the problem your modelling really is dynamic. Basically, in cases
by wtetzner 11y ago
I don't think it's considered a code smell, but it is intended to be used only for cases where the problem your modelling really is dynamic. Basically, in cases where you end up having classes that have methods like
def lookup(name: String): Any
you can instead use Dynamic, meaning instead of having calls like this:
myObj.lookup("foo")
you can do this:
myObj.foo
So no, Scala isn't really trying to become more dynamic, but it has a feature for dealing with problems that are dynamic anyway.