Clojure

defrecord positional arity factory fn should have an inline version that calls the record constructor

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

defrecord positional arity factory fn should have an inline version that calls the record constructor

Activity

Hide
Gary Fredericks added a comment -

I had the idea recently that the factory fn was useful partly for being a redefinable var, e.g. that you could wrap with contracts or anything else. This idea would preclude that.

It makes sense though if the only purpose of ->Foo is to avoid having to :import something.

Show
Gary Fredericks added a comment - I had the idea recently that the factory fn was useful partly for being a redefinable var, e.g. that you could wrap with contracts or anything else. This idea would preclude that. It makes sense though if the only purpose of ->Foo is to avoid having to :import something.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: