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

extendsSelf concatenate with some string #214

Open
pats opened this issue Nov 28, 2022 · 1 comment
Open

extendsSelf concatenate with some string #214

pats opened this issue Nov 28, 2022 · 1 comment

Comments

@pats
Copy link

pats commented Nov 28, 2022

Hi,

I was wondering, is below action possible right now?

What I'd like to achive is to use already defined value with some other values, i.e. concatenate with some string

myHost: 'localhost',
check: {
 http: 'http://${myHost}/is-alive'
}

is it possible?

PS

@joelgallant
Copy link
Contributor

This would be a great feature. Unfortunately, it's somewhat of a circular problem, and hard to define the semantics correctly. You could see how a loop can be written easily:

foo: '${bar}'
bar: '${foo}'

it requires lazy initialization, which isn't currently done today (at least, today's parsing is materializing BFS). values would need representations as thunks, and perform cycle detection, most likely.

it would probably be better to find and support a YAML-like format that supports such a thing.

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

2 participants