On Saturday, May 28, 2016 at 2:38:38 PM UTC-5, Camilo Roca wrote:
>
> @alex-miller
> thanks, that explained a lot. I did check the UseStringDeduplication
> feature and that's exactly what I was looking for.
>
> Funny thing is that it can only be implemented because strings are *immutable
> *in J
@alex-miller
thanks, that explained a lot. I did check the UseStringDeduplication
feature and that's exactly what I was looking for.
Funny thing is that it can only be implemented because strings are *immutable
*in Java :P thus it is cheaper to store a reference to it since it will
never change
Camilo Roca writes:
Hi Camilo,
> Everything is ok with that. The next one on the other hand is what
> puzzles me:
> (identical? \f (first (str "f" "oo")))
> ;;=> true
>
> If what I guess is right, the amount of chars that exist are finite,
> thus Clojure treats them like a "pool of charts". The
On Friday, May 27, 2016 at 6:30:45 AM UTC-5, Camilo Roca wrote:
>
> If what I guess is right, the amount of chars that exist are finite,
>
Well, kind of - see Unicode.
> thus Clojure treats them like a "pool of charts".
>
Java has a small number of primitive value types - byte, short, int, lo
Hey guys,
First of all I would like to ask some thing. In clojure the following
statements results in:
(identical? "foo" (str "f" "oo"))
;;=> false
> (= "foo" (str "f" "oo"))
;;=> true
Everything is ok with that. The next one on the other hand is what puzzles
me:
(identical? \f (first (str "f"