Announcement

Collapse
No announcement yet.

Scala (etc.) Support?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scala (etc.) Support?

    Is support for other JVM languages, like Scala, being considered? I stumbled upon a Scala Wrapper for Rhino on GitHub, which prompted me to ask the question (https://github.com/agemooij/rhinos).

    Has anyone else asked about it? Is there a feeling that there could be some demand?

  • #2
    A simple test suggests there's already at least some Scala support, so that's pretty cool, the following Scala, JavaScript produces the expected results:

    Scala:

    Code:
    package com.test
    
    class Test {
      def Print(message: String): String = {
        message
      }
    }
    JavaScript:

    Code:
    var x = new Packages.com.test.Test;
    return x.Print('Hello!');

    Comment

    Working...
    X