Fork me on GitHub
#clojure
<
2019-09-22
>
emccue03:09:02

Are there any examples of decently sized guis written in seesaw?

emccue03:09:10

just for reference

borkdude10:09:48

I'm seeing a couple of cases of type hints like this: https://github.com/clojure/data.json/blob/f1bf4e264749b51c64f4692da57eb89008758097/src/main/clojure/clojure/data/json.clj#L291 So s is a CharSequence (which could be nil, a string, a regex...) which is then used with count. But count doesn't work with regexes. Is there a reason why the type hint isn't just String then?

andy.fingerhut10:09:21

How can it be a regex? I don't think regex is a sub-class of CharSequence in Java, is it?

borkdude10:09:48

oh it isn't, not sure why I thought so 🙂

andy.fingerhut10:09:57

I'm not saying I know the type hint CharSequence is correct in this particular fn defn, but it seems like if it could be called with that arg being a regex, then the type hint is wrong.

borkdude10:09:27

no, it was confusion on my part. thanks