[plt-scheme] The role of proper and improper lists?
On Jan 25, 2008 8:30 AM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>
> On Jan 25, 2008, at 9:16 AM, Stephen De Gabrielle wrote:
>
> > Good point,
> > and where structs are insufficient use objects.
> >
> > what I struggle with is *when* to change from list to struct to
> > object?
>
>
> I go from structs to objects when I have several functions of the shape
>
> ;; f : StructOfFoo .. Other Types ... -> ...
>
> and I wish to present this code to students past their first year or
> maintain it for a while.
>
> I stick with structs when first-year students may look at my code.
>
> I never replace lists with structs or objects. -- Matthias
But you probably also never use lists of a fixed length to represent
things that probably should have been structs, either.
Robby