TimLariviere / Fabulous-new

Fabulous v2 - Work in progress
https://timothelariviere.com/Fabulous-new/
Other
41 stars 3 forks source link

WIP: Pure Attribute/Widget definitions #54

Open TimLariviere opened 2 years ago

TimLariviere commented 2 years ago

Removed the auto-incremented key and the need for AttributeDefinitionStore and WidgetDefinitionStore. Now their keys are their names, so all definitions require a unique name.

Attributes and widgets now take a direct reference to their definitions.

I had to change a lot of stuff to avoid having everything interdependent (type ... and ... and ... and ...). But I feel most of my changes make even more sense than before. So I'm quite happy.

Only ViewNode is currently very loosely defined. I have to properly think this one.

For now only the project Fabulous compiles

TimLariviere commented 2 years ago

@twop I had to use the name of AttributeDefinition for the sorting key. You can't do GetHashCode on a record holding functions.

TimLariviere commented 2 years ago

I'm putting this one on hold. Not completely satisfied with what I did