Skip to content

Commit 134565f

Browse files
committed
remove redundant :arglists from constructor metadata
defn computes arglists from the actual parameter vector.
1 parent abcd7e1 commit 134565f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/sci/impl/deftype.cljc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@
175175
protocol-impls)]
176176
(emit-deftype rec-type record-name factory-fn-sym
177177
`(defn ~(with-meta factory-fn-sym
178-
{:doc (str "Positional factory function for class " rec-type ".")
179-
:arglists (list fields)})
178+
{:doc (str "Positional factory function for class " rec-type ".")})
180179
~fields
181180
(sci.impl.deftype/->type-impl '~rec-type ~record-name ~record-name (zipmap ~(list 'quote fields) ~fields)))
182181
protocol-impls))))

src/sci/impl/records.cljc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@
343343
meta# (with-meta meta#)))))
344344

345345
(defn ~(with-meta factory-fn-sym
346-
{:doc (str "Positional factory function for class " rec-type ".")
347-
:arglists (list fields)})
346+
{:doc (str "Positional factory function for class " rec-type ".")})
348347
(~fields
349348
(~constructor-fn-sym ~@fields nil nil)))
350349
(defn ~(with-meta map-factory-sym

0 commit comments

Comments
 (0)