Skip to content

Warn on incorrent keyword/named arguments #50

@sarna

Description

@sarna

What do you think about warning the user about calls like these?

(defn named [&named arg]
  (print arg))

(named :arg "hi") # correct
(named :arrgh "this will not print") # wrong

I can't think of any case when the user would want this, and it should be detectable before running the code.

Splicing would be out of scope of this issue (e.g. (named ;(kvs options))).

For more context - Zulip thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions