Skip to content

Minimize the cost of s/fn-schema support for s/letfn  #431

@frenchy64

Description

@frenchy64

#430 revealed a faster way to support s/fn-schema via metadata. We should look into the performance improvements of using the same strategy for s/letfn and then perhaps deprecate schematize-fn.

Idea:

(s/letfn [(f [a ...])]
  ...)
=>
(letfn [(f [a ...])]
  (let [f ^{:schema ...} (fn [a ..] (f a ...)))]
    ...))

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