M
Malte Milatz
furufuru:
You could also say that Numerics and Symbols are very special Ruby
objects, which is shown by the fact that their classes don't have a "new"
method.
If 1.object_id == 1.object_id returned false, Fixnums could in theory be
mutable.
Malte
Yes. I think these are the reasons why Ruby people have adopted the
"illusion" (no derogatory meaning) or view that Fixnums are just
ordianary objects expect they are immutable.
You could also say that Numerics and Symbols are very special Ruby
objects, which is shown by the fact that their classes don't have a "new"
method.
If 1.object_id == 1.object_id returned false, Fixnums could in theory be
mutable.
Malte