Does defrecord support named parameters? i.e. if if I have something like this:
(defrecord Person [name age])
Can I do something like this:
(Person. {:age 99 :name "bob"})
(Person. :age 99 :name "bob")
The only thing I see by googling is stuff like this:
(Person. "bob" 99)
Which seems less clear…
Not currently.
But you can just forget about naming the parameters and use an extension map:
I personally find this to be the easiest way to use records when you have large numbers of possible fields.