How can we have a dynamically typed language over JVM?

前端 未结 3 678
花落未央
花落未央 2021-02-13 22:46

We have Jython, JRuby, Groovy which are dynamically typed and runs over JVM. I understand that these languages compile to byt

3条回答
  •  深忆病人
    2021-02-13 22:58

    You're confusing language and architecture. In general the architecture knows nothing about types. Dynamic typing is when objects carry type information with them. You could think of dynamically typed language as Java with only type 'Object' and a lot of 'instanceof' checks behind your back.

提交回复
热议问题