-
Notifications
You must be signed in to change notification settings - Fork 862
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 variable support? #496
Comments
Hi! I'd say this is something that would be something that consumer of TOML should be doing. Given that it's possible already to do this on top of TOML with basically the same effect, I don't think this should have support at the langauge level. |
Proposed syntax interferes with posix shell syntax. Ability to inline shell scripts to configuration file is highly desirable in some domains. |
Names of variables are actually paths. Paths can be either absolute or relative. How should relative paths work inside of nested combinations of arrays and hashes? At first glance, complexity of this feature is far beyond "obvious". |
Also... #255. |
Yep, I think variables and the like (as in #255) are outside the scope of TOML to deal with. TOML is designed to fill the needs of people with simple config requirements. There are other solutions for those with more complicated needs. Also, host programs that really want something like this can indeed specify as much in their documentation and use strings however they please (as suggested). |
Maybe it will be useful.
Like this:
host = "github.com"
toml_homepage = "${host}/toml-lang/toml"
:)
The text was updated successfully, but these errors were encountered: