[Seaside] Re: Help with converting Gardner

Avi Bryant avi.bryant at gmail.com
Sat Dec 18 14:52:03 CET 2004


On Fri, 17 Dec 2004 22:00:44 -0500, Yanni Chiu <yanni at rogers.com> wrote:

> How about just a single ivar (called data, properties, ...whatever).
> 
> The usage would then be:
> 
>     self session data ivar1
>     self session data ivar1: value
> 
> which, IMHO, is preferable to:
> 
>     self session propertyAt: #ivar1
>     self session propertyAt: #ivar1 put: value

Well, we could even have #data default to being a Dictionary (but
configurable to use some other class), so that you could start out
doing

self session data at: #foo

and then migrate to

self session data foo

as necessary.  Except that I think I'd want to shorten that to

self sessionData foo.

Seem reasonable?

Avi


More information about the Seaside mailing list