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

value of schema default #205

Open
stdweird opened this issue Jun 17, 2018 · 3 comments
Open

value of schema default #205

stdweird opened this issue Jun 17, 2018 · 3 comments

Comments

@stdweird
Copy link
Member

i'm writing some pan code and i realise after some debugging that (part of) the code might depend on a value of a schema default, eg

object t;
bind "/a" = long = 1;
"/b" = value("/a");

which fails with a referenced path (/a) doesn't exist evaluation error

short term question: any tips how to deal with this?

long term question: (this probably doesn't make much sense ;) can we adapt the compiler to look for a schema default when the path doesn't exist (yet)? if the path is set after the value call, it doesn't matter (the result is not the value from the actual profile); if it is not set after the value call, value would return correct result, but no more error.
(actual implementation might be non-trivial, as you have to do recursive schema default searching; and even more so, set the value).

@stdweird
Copy link
Member Author

@jouvin any thoughts on this? (or on #206)

@jouvin
Copy link
Contributor

jouvin commented Jul 28, 2018

I'll try to answer later today...

@jouvin
Copy link
Contributor

jouvin commented Jul 28, 2018

As the discussion seems to happen in the context of the pull request, I continue there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants