-
-
Notifications
You must be signed in to change notification settings - Fork 4
node
pannous edited this page Nov 16, 2020
·
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 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 references as keys: `[use:{a:b} reuse:{a:c}]`
The reference problem is orthogonal!