Tony Sloane

Results 40 comments of Tony Sloane

Using a backspace character (control-H) works fine.

Yes, that's true. At the time I was doing the Scala 3 distribution I lacked the time to work out why that empty doc JAR was being generated. I'll see...

Yes, I agree that this would be good to have. In the past we have not tried to do it since we make some use of macros and ScalaJS didn't...

It appears that we will also have a sticking point over reflection. The Kiama rewriting facility uses Java reflection via getConstructors so it can build a new value with the...

Without knowing too much about Kiama, but might a type class like CanInstantiate[T] be an appropriate generalization of calling getConstructors directly? On the JVM there could be a default implicit...

That might be a way forward. Do you know enough about the ScalaJS platform to suggest whether an implementation of this generic operation would be easy enough to write?

TBH, I didn't have the chance to use ScalaJS myself, so I posted the question on the mailing list: https://groups.google.com/forum/#!topic/scala-js/NnSvK_FmEgc Reported by Martin.Mauch on 2015-01-28 10:41:19

getConstructors() is not support on Scala.js, no, and will never be. Just like getMethods, getFields. If a purely compile-time implementation via (possibly macro-generated) type-classes or factory methods is not possible,...

Thanks for taking the time to help us out. Your solution seems to be a good one. I will take a look in more detail when I have a bit...

You can publish to Maven central without any problems. The only difference is artifact name. Scalajs sbt plugin automatically adds "sjs-0.6.0" (or whatever scalajs version you are using) to the...