Scala在JVM上运行有什么妥协? [英] What compromises Scala made to run on JVM?

查看:168
本文介绍了Scala在JVM上运行有什么妥协?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Scala是一种很棒的语言,但是我想知道如果它拥有自己的运行时该如何改进?
IE.由于选择了JVM,做出了哪些设计选择?

Scala is a wonderful language, but I wonder how could be improved if it had it's own runtime?
I.e. what design choices were made because of JVM choice?

推荐答案

这篇文章是与Martin Odersky(Scala的创建者)进行的讨论,其中包括Scala为与Java兼容性所做的折衷.文章提到:

This article is a discussion with Martin Odersky (Scala's creator) and includes the compromises that were made in Scala for compatibility with Java. The article mentions:

  1. 方法的静态重载
  2. 既具有特征又具有阶级
  3. 包含null指针.
  1. Static overloading of methods
  2. Having both traits and classes
  3. Inclusion of null pointers.

这篇关于Scala在JVM上运行有什么妥协?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆