amber-lang / amber-lang/amber

[Feature] Automatic cleanup for declared variables

Aperta
#988 0 commenti 2 reazioni 2 assegnatari Assegnata a @Ph0enixKM Vedi su GitHub
compiler
Lingua principale
Rust
Stelle
5.2k
Fork
145
Merge medio
5g 3h
PR unite (30g)
7

Descrizione

**Is your feature request related to a problem? Please describe.**
In order to minimize Bash's memory footprint, we should perform a cleanup of variables declared in function's body after its return.

**Describe the solution you'd like**
Ensure the use of `local` keyword for all ephemeral variables. Such variables are automatically freed upon the end of the function

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.