Closed tinchodias closed 1 month ago
Related:
BlSpace class>>#spaceWithId:do:
has no senders@plantec @labordep I'm not talking of removing BlElement's ids. I think element id makes sense, and I think they are used in Toplo and Stylesheets. But what's your opinion on ids on BlSpace, BlTask and BlParallelUniverse?
Hi @tinchodias, I agree with you :-) I use it to identify an instance during debug but if the hash is working this is the same thing.
Instances of
BlSpace
,BlTask
andBlParallelUniverse
are initialized like this:where this id is an integer and the generator is initialized on class-side, like:
(each of the 3 classes has it's own generator).
I propose to remove this, as it mostly adds noise to the code. Pharo and Smalltalk objects have identityHash and this should be more than enough for a developer to identify instances while debugging, reading logs, etc.