Message format - three element vs four element tuples #8
Replies: 2 comments 1 reply
-
I like this reasoning, one very loose argument against it would be: Let's say I have have some different subscriptions set up. These could be all comments in general, where I want to update some counter, then all comments with a specific post id, and I want to show those in a channel viewing that specific post_id. Listening in the channel for all of the updates:
is indistinguishable from listening to the specific post updates:
You would have to do something like
It's not a dealbreaker or a massive issue, quite an edge case, and entirely down to personal preference. I could see someone making the case why it's actually preferred to do this. But I would prefer having two seperate actions personally. PS: in #7, my idea for events-as-config could also support nil values if you wanted to maintain arity equivalece, so
Could be used to generate |
Beta Was this translation helpful? Give feedback.
-
I know I didn't have a strong opinion either way, but I don't remember for sure what I said. It was probably along the lines of only putting the optional stuff in the map and always including the primary key as an element of the tuple. But now I don't even know if that's a good argument because a table might not have a primary key or could have a composite primary key. |
Beta Was this translation helpful? Give feedback.
-
There was some discussion in this issue about three element vs four element tuples in the messages that
EctoWatch
sends. The current version:The proposal:
I'm potentially interested in this change, though I remember having a conversation with my colleague @CoderDennis and I believe he gave a reason which I liked for going with the four-element tuple (I think maybe something having to do with how code might break if you changed the watcher). I wanted to ask him to chime.
Beta Was this translation helpful? Give feedback.
All reactions