Talk:Tree datastructures: Difference between revisions

From Rosetta Code
Content added Content deleted
(Good. Perhaps JSON-compatible nested and number formats ? Unicode chars ?)
 
Line 7: Line 7:
# Perhaps JSON-compatible formats, both for the nested and numbered data types ?
# Perhaps JSON-compatible formats, both for the nested and numbered data types ?
# Unicode characters beyond the narrowly Anglo-Saxon alphabet ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:09, 15 October 2019 (UTC)
# Unicode characters beyond the narrowly Anglo-Saxon alphabet ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:09, 15 October 2019 (UTC)


The simplest JSON nest (each node a value+list pair) would be:

<pre>[["RosettaCode",[
["rocks",[
["code",[]],
["comparison",[]],
["wiki",[]]
]],
["mocks",[
["golfing",[]]
]]
]]]</pre> [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:43, 15 October 2019 (UTC)


Incidentally, do you feel strongly committed to that particular outline ? For some reason the word 'mock' jars a little (perhaps particularly now that we are beginning to understand more about the destructive potential of digital networks). [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:43, 15 October 2019 (UTC)

Revision as of 23:43, 15 October 2019

Good idea for a task – a couple of thoughts.

This seems a promising kind of task – perhaps worth linking to the Functional Coverage Tree task, so that the latter can use outline parsing routines shaped up here.

A couple of thoughts:

  1. Perhaps JSON-compatible formats, both for the nested and numbered data types ?
  2. Unicode characters beyond the narrowly Anglo-Saxon alphabet ? Hout (talk) 23:09, 15 October 2019 (UTC)


The simplest JSON nest (each node a value+list pair) would be:

[["RosettaCode",[
    ["rocks",[
        ["code",[]],
        ["comparison",[]],
        ["wiki",[]]
    ]],
    ["mocks",[
        ["golfing",[]]
    ]]
]]]

Hout (talk) 23:43, 15 October 2019 (UTC)


Incidentally, do you feel strongly committed to that particular outline ? For some reason the word 'mock' jars a little (perhaps particularly now that we are beginning to understand more about the destructive potential of digital networks). Hout (talk) 23:43, 15 October 2019 (UTC)