Open
Description
I find it pointless to concat and stringify the path, because if one wants to use it (eg. in a getIn
call), it has to be parsed. What's the point of having it as string? Yes I do some pattern matching now, using regular expressions, but even that would be faster and more convenient if path would be an array of actual keys.
Activity
Converting path to List type (fixes intelie#3)
pedroteixeira commentedon Mar 6, 2015
Right now, for us, it's more convenient that .toJSON() is compatible to the json patch spec, which adopts json pointer strings rather than arrays: https://tools.ietf.org/html/rfc6902
Will talk about it, perhaps could be an options to the diff function.
NodeGuy commentedon Mar 22, 2017
You may prefer this fork: https://github.com/tgriesser/immutable-diff
pedroteixeira commentedon Mar 22, 2017
nice! perhaps we could eventually have a single code base, and an API to support both return types
Converting path to List type (fixes intelie#3)