开发者

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

开发者 https://www.devze.com 2023-02-05 05:51 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: Practical uses of a Dynamic type in Scala
This question already has answers here: Closed 12 years ago.

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消