eudoxia0 / crane

An ORM for Common Lisp.
http://eudoxia.me/crane/
201 stars 19 forks source link

Creating an instance from a plist of properties #14

Closed EuAndreh closed 10 years ago

EuAndreh commented 10 years ago

The most idiomatic way to do it in the library I got was:

(crane.interface:create% (apply #'make-instance 'user '(:name "lisp")))

Instead of

(create 'user :name "lisp")

Is that the best way to accomplish it?

eudoxia0 commented 10 years ago

Currently, yes, this is the only way. I thought about giving create% a more bearable name (Like create-instance). Would you want this in addition to a create-from-plist function?

EuAndreh commented 10 years ago

Actually, I think the naming is very good. I like it a lot. And I believe that a create-from-plist function would suffice.