ClojureScript support
Are there any plans to support ClojureScript?
Not anytime soon. I currently don't have much time to work on spectrum, and CLJS will be a good bit more work than just CLJ, because of JVM vs. JS differences. Probably 1/3-1/2 of the spectrum code deals with Java interop. I expect if spectrum were ported to CLJS, most of the clj-specific code would port, but a similar ratio of JS code would remain. Secondly, there is the issue of type signatures for host code. In the JVM, I can just ask "what is the signature for Foo.bar". In CLJS, that will probably have to come via Flow or Typescript.
On Wed, Feb 15, 2017 at 5:55 PM, Viktor Eriksson [email protected] wrote:
Are there any plans to support ClojureScript?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arohner/spectrum/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA8PqLN2P5oYwGciiUtlqy0R2KrY4xUks5rc5BxgaJpZM4MCaEA .
Alright, too bad but it makes sense.
ons 15 feb. 2017 kl 18:49 skrev Allen Rohner [email protected]:
Not anytime soon. I currently don't have much time to work on spectrum, and CLJS will be a good bit more work than just CLJ, because of JVM vs. JS differences. Probably 1/3-1/2 of the spectrum code deals with Java interop. I expect if spectrum were ported to CLJS, most of the clj-specific code would port, but a similar ratio of JS code would remain. Secondly, there is the issue of type signatures for host code. In the JVM, I can just ask "what is the signature for Foo.bar". In CLJS, that will probably have to come via Flow or Typescript.
On Wed, Feb 15, 2017 at 5:55 PM, Viktor Eriksson <[email protected]
wrote:
Are there any plans to support ClojureScript?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arohner/spectrum/issues/8, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAA8PqLN2P5oYwGciiUtlqy0R2KrY4xUks5rc5BxgaJpZM4MCaEA
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arohner/spectrum/issues/8#issuecomment-280214871, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzrYK1LDmkOa66QVzPYIp5fwlu4Boyxks5rc7kxgaJpZM4MCaEA .
This project would make a very great linter for Clojure. Kind of like tslinter for TypeScript or Merlin for Ocaml.
Could you expand a bit on asking for the type above? Aren't types calculated from specs? Are you talking about primitives?