clojure-dev

mpenet 2023-03-11T16:06:30.665069Z

Would that be ok to allow extend to take kwargs and/or map params for proto+mmaps (right now it's kw-args only) and leverage the underlying auto-conversion ? basically changing the signature from [atype & proto+mmaps] to [atype & {:as proto+mmaps}] ?

mpenet 2023-03-11T16:06:52.943109Z

it's quite handy when you have a map as a "proto+mmaps"

mpenet 2023-03-11T16:08:40.946489Z

pb I am trying to solve: making extend calls easier with maps, since sometimes when you use it the proto-mmap might be the result of composition/mixins

Alex Miller (Clojure team) 2023-03-11T16:52:38.358419Z

Feel free to write up an ask Clojure request

mpenet 2023-03-11T16:52:52.436199Z

will do

mpenet 2023-03-11T16:09:33.675599Z

I know I can just (apply extend type (into [] cat proto-mmap-map) for now, but that seems that changing the signature would be harmless (and allow both)