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 variable support? #496

Closed
pzzp opened this issue Nov 21, 2017 · 5 comments
Closed

add variable support? #496

pzzp opened this issue Nov 21, 2017 · 5 comments

Comments

@pzzp
Copy link

pzzp commented Nov 21, 2017

Maybe it will be useful.
Like this:
host = "github.com"
toml_homepage = "${host}/toml-lang/toml"

:)

@pradyunsg
Copy link
Member

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.

@lmna
Copy link

lmna commented Nov 21, 2017

Proposed syntax interferes with posix shell syntax. Ability to inline shell scripts to configuration file is highly desirable in some domains.

@lmna
Copy link

lmna commented Nov 21, 2017

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".

@pradyunsg
Copy link
Member

Also... #255.

@mojombo
Copy link
Member

mojombo commented Nov 23, 2017

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).

@mojombo mojombo closed this as completed Nov 23, 2017
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

4 participants