Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the new scala Dynamic type do? [duplicate]

Tags:

scala

Possible Duplicate:
Practical uses of a Dynamic type in Scala

It has just been tweeted that Martin Odersky has just added Dynamic into trunk. Apparently, this is HUGE. Why?

like image 327
oxbow_lakes Avatar asked Oct 24 '22 22:10

oxbow_lakes


1 Answers

Dynamic adds developer driven dynamic binding (dynamic dispatch) and gives a subset of the features of dynamic typing to Scala.

See this pastie from Jorge Ortiz:

http://pastie.org/1469174

like image 190
Viktor Klang Avatar answered Oct 31 '22 10:10

Viktor Klang