[Cuis-dev] [RFC][Proposal] Refactoring of World Morph

Luciano Notarfrancesco luchiano at gmail.com
Fri Oct 23 23:39:49 PDT 2020


Sounds great!

On Sat, 24 Oct 2020 at 1:13 AM, Juan Vuletich via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi Folks,
>
> Today, the morphic world is an instance of PasteUpMorph. But
> PasteUpMorph is a more general class, just an area where you can play
> with submorphs. For World functionality, there is an instance var called
> 'worldState' that holds an instance of WorldState. This means that
> PasteUpMorph has two very different purposes, and that the World is
> actually split in two classes.
>
> I want to make the world an instance of a new class, WorldMorph, that is
> subclass of PasteUpMorph. This allows pushing down a lot of
> world-specific stuff from PasteUpMorph, making the world a self
> sufficient, meaningful object, and remove the ugly WorldState class. All
> this also means a reduction in the loc count for these objects by 10%.
>
> Still, before pushing these changes, I'd like to know if there's a
> downside, or any feedback.
>
> Thanks,
>
> --
> Juan Vuletich
> www.cuis-smalltalk.org
> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
> https://github.com/jvuletich
> https://www.linkedin.com/in/juan-vuletich-75611b3
> @JuanVuletich
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20201024/d548a20a/attachment-0001.htm>


More information about the Cuis-dev mailing list