Welcome! Please see the About page for a little more info on how this works.

+8 votes
in Records and Types by
recategorized by

If I define (defrecord SomeDefrecord [foo]), its map->SomeDefrecord constructor arglist will be the following:


This is not quite friendly, and doesn't result in an ideal experience for users of clojure.repl/doc, cider-nrepl, and any other runtime-based tool.

So I would suggest that :arglists for such constructors are based on the fields that the defrecord declares:

:arglists '([{:keys [foo]}])

This seems very simple to implement - have you considered adding this small but real improvement?

1 Answer

+2 votes
selected by