fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 209: Type with automatic deep deallocation
Idiom # 209: Type with automatic deep deallocation
See
programming-idioms.org
:
Code
t (s String, n array
) is v := t "Hello, world!" [1,4,9,16,25] # v, v.s and v.n will automatically be deallocated when they are no longer # accessible, either statically if they can be proven to be contained to their # scope, or dynamically by a GC.
What are effects?
last changed: 2024-07-01
next: NYI: Idiom # 210: Compiler version and options