[WIP] prepend for functional collection updates#131
[WIP] prepend for functional collection updates#131chrisandreae wants to merge 2 commits intomasterfrom
Conversation
|
Bikeshed? |
I'm not yet seeing the part that makes this backward-compatible. With the The factoring of |
|
It's a long time ago, hard to recover exactly what I was thinking.
I'm pretty sure the comment referred to the first commit, not the second "alternative" commit
I think that's exactly what I liked about prepend and anchor option. What I didn't like as much was it wasn't backwards compatible. So it was: commit 2: get rid of before and after, replace them with an anchor, and prepend/append to the anchor or the list as a whole if no anchor is specified. Cleaner, but not backward compatible. Which did you like? Did you have another idea instead? |
Oh, oops. I just read the diff. When using before/after the consistent approach is to introduce a handle for the start and end of the collection, probably in the form of a sentinel value. This means the prepend is expressed as I remain unconvinced that this level of expressiveness is a good idea. Could we go with the breaking change with a migration from the (currently) less expressive before/after? Just to ease deployments with existing clients. |
|
I think I'm OK with that. Hopefully the migration in the fupdate code won't be too brittle. |
So this is a minimal and backward-compatible change, but I don't think I like the API much. Help me bike-shed it?