self memoize: #methodThatDoesSomethingLong:. would automatically store parameters values as cache keys. No matter how many such parms.
No need to have blocks or anything,operations are memoized. We use blocks for lack of a better way right now I guess. Phil On Thu, Jan 26, 2017 at 12:22 AM, Igor Stasenko <[email protected]> wrote: > result := [ do something long or short or whatever] cached. > > On 26 January 2017 at 01:20, Igor Stasenko <[email protected]> wrote: > >> >> >> On 26 January 2017 at 01:14, [email protected] <[email protected]> >> wrote: >> >>> If one is doing any dynamic programming, the memoization term is pretty >>> natural. >>> >>> for that purpose, i naturally using 'caching' wording. >> >> >>> https://youtu.be/OQ5jsbhAv_M?t=3m11s >>> >>> Phil >>> >>> On Wed, Jan 25, 2017 at 10:30 PM, Igor Stasenko <[email protected]> >>> wrote: >>> >>>> #once can be interpreted as 'evaluate it once', >>>> >>>> but i don't like the #memoized .. it sounds painful to my ears. >>>> It sounds like something stinking smeared across my face.. and i always >>>> got stuck,confused and lost as the meaning of it always >>>> escaping my mind, since it naturally defends itself from any unpleasant >>>> thoughts. >>>> >>>> IMHO, maybe #once is not the best wording for what it does , but >>>> #memoizing... yuck.. pardon me. >>>> >>>> :) >>>> >>>> >>>> -- >>>> Best regards, >>>> Igor Stasenko. >>>> >>> >>> >> >> >> -- >> Best regards, >> Igor Stasenko. >> > > > > -- > Best regards, > Igor Stasenko. >
