Fork me on GitHub
#specter
<
2017-10-01
>
michaelwfogleman02:10:23

I just found myself writing a helper function, (defn match-path [p] (if-path p STAY)) - is there a more idiomatic way to do that, or is that sensible (TM)?

nathanmarz10:10:31

also, that would be a very unperformant way to implement selected?, since it would force recompilation of that subpath every single time the callsite is invoked

nathanmarz10:10:51

(defdynamicnav match-path [p] (if-path p STAY)) fixes it

michaelwfogleman16:10:12

Got it, thanks! I don't think we've documented defdynamicnav and defrichnav, anything I'm missing? I'll try to make a PR at some point

michaelwfogleman17:10:55

Then again that may be above my pay grade... 🙂

michaelwfogleman17:10:33

Ah it's in the inline caching implementation doc - had not read that

nathanmarz21:10:00

yea, that would be a good one to document