Skip to content

value of schema default #205

Description

@stdweird

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions