[Cuis-dev] The Preference model

ken.dickey at whidbey.com ken.dickey at whidbey.com
Thu Apr 28 11:53:25 PDT 2022


On 2022-04-28 11:00, Hilaire Fernandes via Cuis-dev wrote:

> Is your main idea to bypass the type issue with the BlockClosure 
> setter?

Yes. Seems to allow one to be simple or complex as needed.

Also, you don't need #perform: and a bunch of symbols for various 
things.

One could do without a notifier (again, just use the sample code to 
notify the preference and have a browser pay attention to that).  
Perhaps overly general to use a closure here.

See?  You are already making things simpler!  :)

Also,

  (MyPref preferencesDictionary at: #DoYouLikeMe) description

could be shortened to
  (MyPref at: #DoYouLikeMe) description

if MyPref class defines #at: to do the obvious.

$0.02,
-KenD


More information about the Cuis-dev mailing list