joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
2019-07-26T18:51:20.000800Z

Just noticed something interesting about count:

$ clojure
Clojure 1.9.0
user=> (= 1 (count " "))
true
user=> (= 1 (count "●"))
true
user=> ^D
$ joker
Welcome to joker v0.12.5. Use EOF (Ctrl-D) or SIGINT (Ctrl-C) to exit.
user=> (= 1 (count " "))
true
user=> (= 1 (count "●"))
false

2019-07-26T18:53:21.001Z

Looks like count returns the number of bytes in the passed string rather than the number of characters:

user=> (count "●")
3