April 8, 2016
7:41 a.m.
On 08 Apr 2016, at 09:19, Damien Cassou <damien.cassou@inria.fr> wrote:
Henrik Nergaard <henrik.nergaard@uia.no> writes:
| s1 s2 |
s1 := 1234 asString. s2 := 1234 asString.
s1 = s2. "true" s1 == s2. "false"
s1 asSymbol = s2 asSymbol. "true" s1 asSymbol == s2 asSymbol. "true"
(s1 class allInstances select: [:s | s = s1 ]) size. "2" (s1 asSymbol class allInstances select: [:s | s = s1 asSymbol ]) size. "1"
[ #stringA = #stringB ] bench. "26,812,864 per second" [ 'StringA' = 'StringB' ] bench. "3,492,987 per second"
very very nice summary.
YES!
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill