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

Allow segments to be indexed using a variable #212

Open
sagacity opened this issue Jul 22, 2021 · 0 comments
Open

Allow segments to be indexed using a variable #212

sagacity opened this issue Jul 22, 2021 · 0 comments

Comments

@sagacity
Copy link
Member

In a macro it would be nice to be able to pass in the name of a segment (e.g. in an argument called segment_name). However, it will not resolve the argument name and simply use segment_name directly, i.e. trying to look up a segment with the actual name segment_name.

Perhaps the syntax should be changed to an array syntax, e.g. segments['name'].start so that string interpolation can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant