ottypes / json0

Version 0 of the JSON OT type
447 stars 64 forks source link

Tree Data Structure -- Nested Lists #9

Closed joeleaver closed 9 years ago

joeleaver commented 9 years ago

I need to implement a tree-type data structure, a list of nested lists. As json0 stands today, from what I understand from reading the code, moving a list element from one list to another is not yet supported. Is this correct? Should I, instead, remove the list element, and re-insert it at the correct position in the destination list? Has anyone else implemented this? Advice/pointers much appreciated.

nornagon commented 9 years ago

That's correct, json0 does not support moving elements around a tree. The json2 type (not yet implemented) will support this (cc @josephg)

josephg commented 9 years ago

Yep. The spec for the new type is here, but it hasn't been implemented yet. Take a read of the new spec - now's the time for comments.