Fork me on GitHub
#cljs-dev
<
2019-06-28
>
dnolen19:06:01

anything I should take a look at today?

dnolen19:06:31

circling back to leveraging externs parsing to derive docstrings / types for Closure APIs

mfikes19:06:32

Wow, :arglists was a 1-liner?

dnolen19:06:09

JSDocInfo class in Closure has a lot of stuff

mfikes19:06:40

Oh, I see, this gets us the parameter names, but not yet the types. Cool nonetheless!

dnolen19:06:52

we already get the return type - that's the most important thing

dnolen19:06:41

checking arg types probably isn't going to be that useful since Closure supports some sophisticated stuff

mfikes20:06:11

Ahh, right. Yeah, if return types flow out of Closure libs, that would be really beneficial.

dnolen20:06:58

yeah goal here is type inference so we can remove another big reason for hinting

dnolen20:06:16

and to give a Clojure experience at the REPL for Google Closure libs

dnolen20:06:44

doc in particular

dnolen20:06:57

source would be extra credit

dnolen20:06:29

also arity checking for Closure fns

dnolen20:06:19

last one would need to detect optional args - so that's for later too