[Pharo-dev] Re: About removing class side initialization

2024-01-17 Thread James Foster via Pharo-dev
Stef, Your comments brought to mind a few thoughts. First, initialize methods should, in general, be idempotent; that is, running them repeatedly should not make further changes after the first run (along the lines of your mention of lazy initialization). For example, if a variable is nil

[Pharo-dev] About removing class side initialization

2024-01-17 Thread stephane ducasse
Hi community I would like to get use your ideas. Here is the case Context: Class side initialize are not good. We fixed a bug with guille today (should do a PR) this bug was breaking some projects by changing the superclass of classes to Object. Radical! It was produced by