Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

add rule for defstruct #62

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

bostonaholic commented Nov 30, 2012

This will suggest

(def name (create-struct keys))

to

(defstruct name keys)
Owner

jonase commented Dec 1, 2012

Should we be using structs at all?

Overall, records will be better than structmaps for all information-bearing purposes,
and you should move such structmaps to defrecord. It is unlikely much code was
trying to use structmaps for programming constructs, but if so, you will find deftype
much more suitable.

(from http://clojure.org/datatypes)

Contributor

bostonaholic commented Dec 27, 2012

Yep, you're right. So maybe this is a good pattern for kibit to suggest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment