conj has out-of-date :arglists

Description

conj has had nullary and unary overloads since 1.7.0, but its :arglists still only list [coll x] and [coll x & xs]:

Proposed:

Patch: clj-2169-3.patch

Screened by: Alex Miller

Environment

None

Activity

Show:
Michał Marczyk
May 28, 2017, 12:05 AM

It occurs to me that perhaps the docstring could be updated too to explain (conj).

The new 0002-… patch includes the :arglists change of the 0001-… patch and adds the sentence "(conj) returns []." to the docstring immediately after "(conj nil item) returns (item).".

Rich Hickey
December 11, 2020, 4:09 PM

doesn’t document unary?

Alex Miller
December 11, 2020, 4:50 PM

Updated patch, attribution retained

Alex Miller
December 11, 2020, 7:08 PM

Applied for 1.10.2-rc1

Fixed

Assignee

Unassigned

Reporter

Michał Marczyk

Labels

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Minor