Re: changing metadata questions

2016-05-13 Thread hiskennyness
> > > OK, I am working with refs, let's do it!: > > (let [x (with-meta (ref {:a 42}) >> {:raw 17})] >>(alter-meta! x #(update-in % [:raw] inc)) >>(meta x)) > > > Nope. IRef cannot be cast to IObj. ...google...google... Hunh? The :meta > option on ref? > > [1] Why the spec

changing metadata questions

2016-05-12 Thread hiskennyness
It occurred to me that the game I was playing shunting initargs off into a "raw" key of one name or another before converting them into a map might more comprehensibly be done by treating the raw values (and other attributes I use to manage these beasts) as metadata. But I need to update the me