[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keywords in make-instance?



  Pros for first choice:
     User doesn't have to mess with packages as much.
  
  Cons against first choice:
     If the keywords are the same as the names of slots, then forgetting
     the package may create collisions.
  
You eventually have to face up to the issue of packages.  If you go
with :keywords you should warn the user about collisions somehow.

  Any others?

CLOS lets you go either way.

Why not make the initarg be the same as the accessor that way the
users only need to remember 1 name.

k