I like that idea. 

So we would have create take a pailstructure instead of a spec.

pail-create goes away.

Then add the {:as create-key-args} to find-or-create...

Is that what you are thinking?


----- David Cuddeback's Original Message -----
> > @@ -25,6 +25,25 @@
> >      (Pail/create path spec fail-on-exists)))
> >  
> >  
> > +(defn create-pail [structure path & {:as create-key-args}]
> 
> I just noticed that `find-or-create` uses `create-pail` as it's fallback. If we merge the functionality into `create`, then `find-or-create` would work with `PailSpec` objects as well. I'm starting to lean toward merging the functionality into one function.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dcuddeback/clj-pail/pull/1/files#r8629141