Jonathan Lang wrote:
> Arguably "list" should be non-committal and we give
> @() a different name like "flat", but that grates in my brain for
> some reason, if only because most list contexts would in the end
> be flat anyway.  And "list" in English already implies something
> flatter than, say, an "outline".

...which tends to be more akin to "slice".  In fact, consider renaming
"slice" as "outline".  Sure, it's two characters longer; but it's
_much_ more descriptive of what's going on.  "Slice" strikes me as
something of a holdover from its origins in array indices.

An even better choice might be "tree": it's the same length as "list"
and "item", and conveys the hierarchal structure inherent to that
context quite nicely.

Then again, [[['a', 'b'], ['c', 'd']], 'e', ['f', 'g']] isn't really a
tree _or_ an outline, since only the "leaf nodes" actually have
content.

--
Jonathan "Dataweaver" Lang

Reply via email to