Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

valueOf in scala.js #164

Open
cquiroz opened this issue Aug 9, 2017 · 3 comments
Open

valueOf in scala.js #164

cquiroz opened this issue Aug 9, 2017 · 3 comments

Comments

@cquiroz
Copy link

cquiroz commented Aug 9, 2017

I'd like to use scala.Predef.valueOf in scala.js but it is not present on their scala.Predef since it follows the LB compiler

Would it be possible to have another implementation of valueOf as a library perhaps?

/cc @sjrd

@sjrd
Copy link

sjrd commented Aug 10, 2017

In general, any addition to the standard library in TLS would refuse to work with Scala.js out of the box. That's simply because scalajs-library.jar is built from the sources of LBS. IMO, if TLS starts having additional methods/classes in the standard library, and wants to support Scala.js, someone needs to build and publish a tls-scalajs-library.jar or whatever it's called, built with the Scala.js compiler from the sources of TLS' standard library.

@milessabin
Copy link
Member

@sjrd would you be willing to collaborate on something along those lines?

@sjrd
Copy link

sjrd commented Oct 23, 2017

I can give some guidance if someone wants to setup the necessary build. Probably the easiest way to do so is to copy the parts of the Scala.js build involved in making up the scalalib subproject, and make it use the Typelevel sources. Then it should probably merge the content of the official scalajs-library.jar with the .sjsir files produced by that alternative scalalib, to make tls-scalajs-library.jar. Alternatively, also replicate the parts of the subprojects javalib, javalanglib, libraryaux and library to build it all from scratch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants