-
-
Notifications
You must be signed in to change notification settings - Fork 4
node
Pannous edited this page Sep 14, 2021
·
6 revisions
The fundamental data type in Angle is a map.
Just like how in lisp everything is a list, in angle everything is a map.
Or internally: a node with internal kind, parent, children and values.
Peter{address="Home 1"}
is internally represented as
Node{
name="Peter"
children={
Node{
name="address "
value=Node{
name="Home 1"
type=string
}
}
}
{a:b c:d} => a(value:b next:c)
{a{b c} d:e} => a(children:[b c] next:d)
Question: can children&value be merged? Not if we allow referenceIndices as keys: [use:{a:b} reuse:{a:c}]
The reference problem is orthogonal!