Wondering if there's a way to ensure some #clojure metadata are NOT persisted across updates. Such a feature would support the "I already validated this thing, no need to revalidate" use case. Maybe there's a different solution?

@mmisamore admittedly I haven't done much with metadata, but if you data is being persisted, wouldn't a clear solution to be to insert a "validated?" value on to the data, so that instead of checking for the ABSENCE of something, you are checking for the presence of it? This feels idiomatic to me, given the additive nature of lisp in general (eg the REPL)

@worldsendless At the metadata level, ":validated true" doesn't help since subsequent mutations persist the metadata but might make the data invalid again.

Follow

@mmisamore would the old "timestamp instead of boolean" capture your needs? So it says WHEN validated? Or is it not just a time-based validation? Also, you could probably change it to `:validated nil` rather than trying to delete it?

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.