arkadius / scala-enum

Simple 40-lines implementation of enums for scala based on sealed classes
Apache License 2.0
2 stars 0 forks source link

Feature request: ScalaJS support? #1

Open PhilAndrew opened 9 years ago

PhilAndrew commented 9 years ago

Hi this is interesting, I think it may not work with ScalaJS due to the use of reflection, it would be nice to use within ScalaJS. http://www.scala-js.org/

arkadius commented 9 years ago

Unfortunately scalajs doesn't support reflection and there is no plans to make it works. At this moment it is better to use macro-alternative for it. I've seen that you've reported an issue it this project. If you'll provide a test reproducing a problem I think community could prepare working solution.

Cheers, Arek