Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read-only variables for reduced code generation #599

Open
PhonicUK opened this issue Oct 18, 2024 · 0 comments
Open

Read-only variables for reduced code generation #599

PhonicUK opened this issue Oct 18, 2024 · 0 comments
Assignees
Milestone

Comments

@PhonicUK
Copy link

When a variable is only used on a control which is not editable and will never be changed by the UI (such as a label) - there's no need for the generated code to produce a stub for a setter.

It would be nice if we could explicitly set variables as read only so that the code generation won't produce set_var_my_variable(value) stubs that get implemented as nothing and serve no purpose.

Right now I'm either implementing these as empty methods where I don't want/need them, or manually removing the stubs - but this is extra work. Removing these would help make the overall code slightly cleaner by reducing unnecessary cruft.

@mvladic mvladic modified the milestones: 0.19.0, 0.20.0 Oct 31, 2024
@mvladic mvladic modified the milestones: 0.20.0, 0.21.0 Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants