Is the `value` field of `QuoteNode` public?

Is the value field of a QuoteNode public? The docstring does not mention the value field. I just wrote the following function, but I’m not sure if using the value field means that I’m accessing internals.

function is_symbol(ex)
    ex isa Symbol || (
        ex isa QuoteNode &&
        ex.value isa Symbol
    )
end
1 Like

The devdocs manual mentions it:

For example, the function f() = :a contains a QuoteNode whose value field is the symbol a, in order to return the symbol itself instead of evaluating it.

so I would treat it as public. That said, a PR that mentions it in the docstring would be great to clarify things.

1 Like