Hello all,
I am very new to Roy and I like what I see very much.
Now I would like to know how tightly Roy (the compiler) is bound to node.js, or if it can run in other environment (I seem to remember in-browser compilation?).
I would be especially interested in running Roy on Rhino.
Is that possible?
Beside that, I detected two issues:
1. The REPL doesn't work over multilines, so e.g. trying to input a typeclass definition seems not to work?
2. The online console on roy.brianmckenna.org states 0.1.5 on the page, but this doesn't seem to understand typeclasses either, at least I get a GENERIC error with
'typeclass Hello #a {'
And at least, is there any solution for creating JS objects with an arbitrary string as key (there exist an issue in the github tracker IIRC)?
This would help with some node APIs it seems.
TIA
Det
Am 14.07.2012 13:38 schrieb "Brian McKenna" <br...@brianmckenna.org>:
>
> Theoretically you should be able to do this:
>
> let fw = (new java.io.FileWriter) ()
Hmm. Yes, you're right. I tried different things, but not that, it seems.
> It's ugly. Maybe we should just add the new keyword to Roy.
Maybe. For me first prio is that things ARE expressible, beauty is a next step.
Thanks
Det