Skip to content

Feature request: add an arity to a function #349

Closed
@exupero

Description

@exupero

By default I define functions as

(defn func [arg]
  body)

Adding an arity to such a function requires

  1. Wrapping the existing arglist and body in parens,
  2. Inserting a set of parens, and
  3. Defining a new arglist.

This is the most tedious refactoring I regularly do, and seems like a good candidate for a clj-refactor operation. I don't have any suggestions for how such an operation ought to work; any automated system ought to beat doing it manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions