I see.. maybe a widget would be better if we want to add new elements
and put several fields for each element of the list.
Thanks !
Evan
Yes, that's what I was thinking about, editing the list separately.
Evan
> * We currently have no meaningful way to do this that I know of.
> Using NIL for this purpose is probably not a great solution -- how
> can we specify that a field is essentially 'unbound'?
I think that currently if a field corresponds to a class slot that
isn't bound, the reader returns NIL. Generally Weblocks uses NIL like
that because when I started writing it I didn't fully understand the
difference between the concept of bound/unbound variables and
variables bound to NIL. This is definitely not the best way to handle
the idea that a field may have no value (we want unbound here, rather
than NIL), but it's the way it works now.
I've been swamped by schoolwork, and I also wrote some code to play
with the Netflix challenge. Once you figure out how to get the data
into Lisp, the challenge becomes extremely addicting (since you can
code up functions that get all kinds of interesting stats out of the
data). I'll be doing some more weblocks work soon.
When a slot is unbound (i.e., has no :initform and was not initialized
by make-instance or not set by setf or a slot writer), you get an
error when you try to access it. You can check whether a slot is
bound with the function slot-boundp.
I'm not sure whether unbound slots play nicely with the prevalence
though. But it certainly would be more natural to use them to say
that the data was not set :).
Evan