[Cuis-dev] The Preference model

Mariano Montone marianomontone at gmail.com
Thu Apr 28 10:45:27 PDT 2022


El 28/4/22 a las 14:31, Hilaire Fernandes via Cuis-dev escribió:
>
> Hi Mariano & al,
>
> Okay I incompletely read and understood your suggestion. It looks like 
> this is a good way to go and I like the idea too :)
>
> To sum up, the ideas (correct when wrong):
>
>   * Add a 'prefrerenceType' or just 'type' instance variable to the
>     Preference class. It can be a symbol or reference to a class
>     (String, Boolean) or instance ({'foo'. 'bar'.'baz'},
>     (Interval from: 0 to: 100))
>   * Purge the Preferences class side methods
>   * Use a dictionary like protocol to access the preference instances
>     and its value
>   * Make Preferences instance side defined, so we can have load/save
>     features
>
> That's for the basic that should go in Cuis. Complete with the missing 
> point.
>
Hi Hilaire,

yes, I agree with that list :D


One thought: what if instead of purging the Preferences class side 
methods, we keep them, but make them access the new Preferences 
singleton object, and we can have backwards compatibility.


Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220428/e133c895/attachment.htm>


More information about the Cuis-dev mailing list