Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Scala 2.12 #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update to Scala 2.12 #3

wants to merge 3 commits into from

Conversation

ExE-Boss
Copy link
Member

This PR upgrades NOVA-Scala to use Scala 2.12.1

New features:

  • Scala lambdas and Java 8 lambdas are now binary compatible.

Note that in Scala:

val lambda = variable => variable

is still a type of Function1 unless you do

val lambda: java.util.fuction.Function = variable => variable

in which case it becomes a Java 8 Function.
This isn't a problem in Java 8, as Java 8 has to have the type declared.

  • Traits now compile directly to an interface with default methods where possible.

More about Scala 2.12:

http://www.scala-lang.org/news/2.12.0

* @author anti344
*/
@Deprecated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we shouldn't delete this? We don't need backwards compat because we have no releases.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't any specific reason as to keeping it, I don't even use it in #4.

@ExE-Boss ExE-Boss changed the title Upgrade to Scala 2.12 Update to Scala 2.12 Feb 22, 2017
@ExE-Boss ExE-Boss added done and removed ready labels Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants