|
|
|
|
|
by throwaway81523
1613 days ago
|
|
Linear logic is logic where any value must be used exactly once, i.e. if a=3 and you say b:=a, then b becomes 3 and a becomes undefined. The value is moved rather than copied. That is useful for describing e.g. resource management systems. If I transfer a resource to you, then you have it but I no longer do. Linear types basically means a type system that enforces linear logic. A good practical description of linear logic (but not types) is here: https://hashingit.com/elements/research-resources/1994-03-Fo... Yes it's about how Forth implements linear logic without realizing it ;). |
|