Fork me on GitHub
#clojurescript
<
2017-06-18
>
puzzler00:06:39

Is there a timeline for when clojure.core.specs.alpha namespace will be ported to clojurescript?

mfikes00:06:50

@puzzler It has already been ported

mfikes01:06:22

Oh, sorry @puzzler, I see you mean the specs namespace.

mfikes01:06:08

I’m not aware of any timeline. Generally, spec stuff has been ported over by the community, as it evolves. This particular namespace hasn’t, but could probably be ported (and perhaps revised to reflect any ClojureScript-specific aspects.)

puzzler01:06:19

@mfikes While you're here, another quick question directly for you. Is this blog post still relevant: http://blog.fikesfarm.com/posts/2016-03-01-clojurescript-macro-sugar.html#implicit_sugar

mfikes01:06:20

FWIW, even though, in ClojureScript, the namespaces were revised to use the alpha segment, the ClojureScript spec code is still part of the ClojureScript compiler distribution. I don’t know what that might mean for the core.specs.alpha lib, which seems to be separate

mfikes01:06:55

@puzzler Yes, I believe everything is still true in that post (I suppose it is fairly “evergreen”). A few things did occur in the ns spec world since then: The clojure aliasing, and the ability to rename stuff.

puzzler01:06:50

@mfikes So a file still needs to do a require-macros on itself? I thought this happened automatically now.

mfikes01:06:01

@puzzler You might be right. And if so, I wonder if that is formally documented anywhere.

mfikes01:06:34

@puzzler It appears that a file still needs to require its own macros in order for the implicit macro loading feature to be enabled.

mikeb02:06:12

What's the current best way to run unit tests in clojurescript?

cryan03:06:42

has anyone used moment-timezone's guess function? having trouble calling it through clojurescript

cryan03:06:42

oh... nevermind

dm319:06:13

Does anyone know why Planck/Lumo (self-hosted cljs) would complain on this line: https://github.com/dm3/stopwatch/blob/master/src/stopwatch/impl.cljc#L38 with

WARNING: Use of undeclared Var stopwatch.impl/+?hrtime at line 38 stopwatch/impl.cljc
? The var it’s complaining about is defined two lines above the use-site. I can’t understand the issue from the generated javascript…

mfikes20:06:05

@dm3 Appears to be an odd analyzer bug

(do
  (def a 1)
  (def b a)
  (def c b))

mfikes20:06:36

^ Fairly minimal repro

benzap23:06:26

Is there any interest in a Vue.js wrapper in clojurescript? Has it already been done yet?