### Breaking
[
Datatype breaking
Funcon broken
Funcon finalise-breaking
Funcon break
Funcon handle-break
]
Meta-variables
T <: values
Datatype
breaking ::= broken
*/
Funcon finalise-breaking(X:=>T) : =>T|null-type
~> finalise-abrupting(X)
*/
Funcon break : =>empty-type
~> abrupt(broken)
*/
Funcon
handle-break(_:=>null-type) : =>null-type
*/
Rule
X --abrupted( )-> X′
------------------------------------------------
handle-break(X) --abrupted( )-> handle-break(X′)
Rule
X --abrupted(broken)-> _
---------------------------------------
handle-break(X) --abrupted( )-> null-value
Rule
X --abrupted(V:~breaking)-> X′
------------------------------------------------
handle-break(X) --abrupted(V)-> handle-break(X′)
Rule
handle-break(null-value) ~> null-value
/*
`broken` is a reason for abrupt termination.