2 ms·
> easy to see that RAII is a very limited version of a linear type system. You might be interested in [0]. Affine logic rejects only the contraction rule [1];
by OJFord 9y ago
> easy to see that RAII is a very limited version of a linear type system.
You might be interested in [0].
Affine logic rejects only the contraction rule [1]; unlike linear systems still has weakening [2].
[0]: https://en.wikipedia.org/wiki/Substructural_type_system https://en.wikipedia.org/wiki/Substructural_type_system
[1]: https://en.wikipedia.org/wiki/Idempotency_of_entailment https://en.wikipedia.org/wiki/Idempotency_of_entailment
[2]: https://en.wikipedia.org/wiki/Monotonicity_of_entailment https://en.wikipedia.org/wiki/Monotonicity_of_entailment