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

Context feature #55

Open
ange-yaghi opened this issue Oct 10, 2020 · 0 comments
Open

Context feature #55

ange-yaghi opened this issue Oct 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ange-yaghi
Copy link
Owner

ange-yaghi commented Oct 10, 2020

In many cases, nodes of the following variety are created:

profile p0()
setting("Setting 1", profile: p0)
setting("Setting 2", profile: p0)
// etc

A potentially better way to do this would be with a new "context" construct:

profile p0()
with context(profile: p0) {
    setting("Setting 1")
    setting("Setting 2")
}

Contexts can also be named:

context some_context(profile: p0)
with some_context {
    setting("Setting 1")
}
@ange-yaghi ange-yaghi added the enhancement New feature or request label Oct 10, 2020
@ange-yaghi ange-yaghi self-assigned this Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant