The goal with your library is to transmit deltas between two systems, and
then apply those deltas to the other system to make them match, yes?

How would you use the diff return value ({:x {:y 1}} nil nil) to cause a
system that currently has {:x {:y 1}} to change to {:x {}}, as opposed to
some other state?  That is, how would it know it needs to change the value
associated with :x to {} as opposed to removing the key :x and its value
entirely?

Andy

On Fri, Feb 20, 2015 at 5:34 PM, Timothy Pratley <[email protected]>
wrote:

> On Fri, Feb 20, 2015 at 4:40 PM, Andy Fingerhut <[email protected]>
> wrote:
>
>> Why not ({:x {:y 1}} {:x {}} nil)  ?
>>
>
> Hi Andy,
>
>
> Great point! Both solutions convey accurately the same meaning? I have a
> subjective preference to nil as the absence of things in b that are not in
> a. Conversely {:x {}} implies that :x is replaced by an empty map, which is
> indeed equivalent, but to my mind the map was always there. It does call
> out the fact that the collection is now empty, which might be useful if one
> was interested in identifying that condition.
>
> Do you have any thoughts on why {:x {}} might be better?
>
>
> Regards,
> Timothy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to