-
Notifications
You must be signed in to change notification settings - Fork 844
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
Can toml use variables? #528
Comments
It can't, and that was a deliberate design choice. Any logic, complicated or not, is best handled by the consumer of the TOML file. TOML doesn't handle that logic. So in your case, you can configure the
You can also include comments in the TOML file so that the configuration entries make intuitive sense. Hope that helps. |
got it.3q. |
But let's say we had a lot of information and a certain value appears a lot, wouldn't it be more readable to define it at the top of the file and then substitute in that name rather than repeat the value every single time? It would also make it easier to change all the values at once by only changing the variable instead of needing to go through each time that value is referenced and changing it there. |
@Moosems Just as recently as last week, I said back in a different closed issue that you ought to propose the simple substitution idea that you had, with details that address previously raised concerns, as a new issue. Will you do that, so we can approach it fresh? @pradyunsg Any chance we can start locking closed issues, so that the spamming will stop? |
can toml reach this effect?
The text was updated successfully, but these errors were encountered: