Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which functionality/feature in Scala only exists as a concession to the underlying platform and should be removed if targeting something else?

Tags:

A while ago I read about Scala for LLVM and I kept wondering which things in the Scala language/specification/library) only exist to make the JVM happy or improve interop with Java.

Considering that running Scala on the LLVM provides much more freedoms and the plan is port the language (and not the whole Java ecosystem around it) which features won't make sense there?

Guidance: I'm wondering about things like Object#finalize, the monitor stuff (notify, wait), clone vs. Cloneable, no 64-bit array indices, collection sizes limited to 32-bit, java.lang.String, Java reflection, ...

like image 965
soc Avatar asked Jun 06 '11 18:06

soc


2 Answers

null, null, null, and null

like image 112
Bill Avatar answered Nov 21 '22 20:11

Bill


Type erasure. Having every object have a monitor reference (a horrible Java mis-feature).

like image 33
Dave Griffith Avatar answered Nov 21 '22 20:11

Dave Griffith