3 ms·
I was doing some genetic programming research. Inheritance was beautiful, because I could have an Instruction base class, and all the possible specific instruc
by AnimalMuppet 6y ago
I was doing some genetic programming research. Inheritance was beautiful, because I could have an Instruction base class, and all the possible specific instructions were derived from that. The execution engine and reproduction stuff could just deal with Instructions, without knowing any specifics about any of them. Each specific instruction knew how to execute itself and how to copy itself. It made things so simple.
When there's a good reason to use it, use it. If there's not, don't. Nobody's forcing you to use it.