Fork me on GitHub
#clojure-dev
<
2017-06-09
>
mpenet17:06:44

any reason why empty doesn't work on records?

mpenet17:06:26

it's a bit of an odd thing but I stumbled into that earlier today

mpenet17:06:37

nevermind dumb question: it could create a record with nil'ed fields, which doesn't really correspond to what you expect, or a plain map, so it's not a clear cut thing (un-intuitive I guess), makes sense it doesn't support it after all

hiredman17:06:26

of course dissoc is implemented on records, and will some times turn a record in to a plain map

mpenet17:06:52

makes more sense because of extmap

mpenet17:06:05

but still, everybody gets bit by this one 🙂

seancorfield19:06:00

Yeah, I got bit by that early in my adoption of Component and wondered why I couldn’t start a system after I’d stopped it… 😐