I understand the confusion - we welcome any suggestions for improvement.
Deletion permissions may depend on values from a state node. For example:
'Is eerste regel': stategroup (
'Ja'
can-delete: user is ( >'State creator' )
{
'State creator': text -> ... .'Users'[]
}
'Nee' { ... }
)
The curly braces ({}) belong to the state node type, whereas can-delete belongs to the state type.
Therefore, we cannot simply move can-delete between the braces; on the language level it would not make sense.
An alternative would be a special means to navigate to the state node:
can-delete: user is ( state-node >'State creator' )
However, this comes at the cost of a new/additional keyword that currently has no other uses in the core Alan languages.