From: MenTaLguY Date: 2005-11-04T05:27:17+09:00 Subject: Re: Anonymous methods, blocks etc. (Cont. 'default block params') --=-7MdksF99roMmYlxSFt68 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2005-11-04 at 05:07 +0900, Trans wrote: > > Any suggestions for what the interface for enabling/disabling caching > > should look like? I think I may as well roll this stuff into a library= . >=20 > Perhaps extend #memoize to handle procs and promises in additional to > methods. Nah, you'd want normal laziness by default. Only in rare circumstances would a non-cacheing promise make sense (think about it -- you'd be getting a totally new object between every individual method call). -mental --=-7MdksF99roMmYlxSFt68 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDanK3cUNIGiXCc4MRAq1pAKCzVqbW8eoIWlbNSpVS4iH646jJcQCgjZ+F nj+Dsvrf8lNoJsG5Gz2cgHw= =tiPB -----END PGP SIGNATURE----- --=-7MdksF99roMmYlxSFt68--