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

Add tree syntax #165

Open
bvssvni opened this issue Jan 17, 2022 · 1 comment
Open

Add tree syntax #165

bvssvni opened this issue Jan 17, 2022 · 1 comment

Comments

@bvssvni
Copy link
Contributor

bvssvni commented Jan 17, 2022

One idea is to add tree syntax as a way of making it simpler to create structured data.

ancient_egypt {
  early_dynastic_period,
  old_kingdom_era,
}

This is the same as:

(early_dynastic_period, ancient_egypt)
(old_kingdom_era, ancient_egypt)
@bvssvni
Copy link
Contributor Author

bvssvni commented Jan 17, 2022

Related to #164

An idea is to combine tree syntax with namespaces:

ns ancient_egypt {
  ::early_dynastic_period,
  ::old_kingdom_era,
}

This is the same as:

(ancient_egypt::early_dynastic_period, ancient_egypt)
(ancient_egypt::old_kingdom_era, ancient_egypt)

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

1 participant