jscala
jscala copied to clipboard
Scala macro that produces JavaScript from Scala code.
May I know if there is a plan to support Scala 3? This is a nice tool to write js snippet but one concern is this may be a blocker...
What/how common is the use case? If a user wants prefixed javascript names, there could be an annotation (like in scala-js) that specifies the javascript name to use. This is...
Create Fiddle for JScala like: http://jsfiddle.net/ http://cljsfiddle.net/ It can be run here: http://fiddle.jscala.org or here: http://run.jscala.org
`{ x: Int => x }` generates ``` function (x) { return x; }; ```
...so that they can be used in scala, and rendered to javascript. This would require a different approach than adding a method to the companion object, like the one I...
I was hoping for a (relatively) type safe and lightweight way of providing options to JavaScript APIs. Suppose we have: ``` scala scala> object L { def f(opt: Opt): Int...
- [x] Don't generate block for single statement ``` scala val a = 1 match { case 1 => 1 } ``` should not generated block like this: ``` javascript...