Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Variables created in the init scope should be removed when the scope terminates? #545

@klag

Description

@klag

I start this issue for discussing a possible feature to add.
At the present, all the variables created in the init scope will be kept and copied when a session is started.

BUT

if the dev is not so smart, he/she could keep unuseful variables alive in all the sessions for nothing.

It is true that this feature is useful for automatically instantiating some variables in all the sessions, but I am not so sure that, from a linguistic perspective, it is a clean way for programming.

Just for reasoning:
maybe it is better to add a variable declaration like this:

var myvar as global (which defines thta myvar is global)
var myvar2 as sessional (which identifies the variables that will be copied in each session)

all the other variables are scoped into init and removed after its execution

what do you think?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions