Fork me on GitHub
#cider
<
2017-01-02
>
seancorfield01:01:52

It returns a new Byte[] on each call.

seancorfield01:01:05

If you look at the actual byte values, they’ll be the same.

seancorfield01:01:52

(seq (.getBytes "テhi" “UTF-8”))
;;=> (-29 -125 -122 104 105)
(seq (.getBytes "テhi" “UTF-8”))
;;=> (-29 -125 -122 104 105)
So that’s the underlying Java method on String returning a new byte array each time.

bhagany16:01:52

alright, good news. it wasn’t actually an encoding issue, I had just written the code as though byte offsets/lengths are the same as string offsets/lengths. Fixed now.

borkdude17:01:20

I wish cljr-clean-ns didn’t change the formatting of my import clauses

borkdude17:01:25

can this be turned off?

benedek19:01:44

there is an option to turn off prefixing for requires not sure that has an effect on imports

benedek19:01:59

check defcustoms tho

benedek19:01:11

there might be something for it

bhagany20:01:37

@dpsutton that PR you helped me with was merged - just wanted to say thank you so much for your assistance. It was great to have someone to talk to about it, and you helped clarify things for me a lot.