Skip to content

Also import ScopeStorage from Base with Julia >= 1.11 #14

@Drvi

Description

@Drvi

While migrating from ContextVariablesX.jl, we needed an "empty scope" in place of empty ContextSnapshot{T}. To do that in a way that is works both before and after Julia 1.11, we needed this hack:

const _EMPTY_SCOPE = ScopedValues.Scope(
    isdefined(ScopedValues, :ScopeStorage) ?
        ScopedValues.ScopeStorage() :
        Base.ScopedValues.ScopeStorage()
)

Since ScopeStorage is not imported to the package from Base in 1.11.
Could we please import it?:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions