Skip to content

Add support for multiple packages in @require statement #54

@juliohm

Description

@juliohm

Sometimes a functionality depends on a combination of packages, and it would be nice to have a syntax for that, something like @require PkgA="..." PkgB="..." include("file.jl")

As discussed on slack, a current workaround is to do something like:

pkgA = false
pkgB = false
@require PkgA begin
 global pkgA = true
 pkgA && pkgB && include("file.jl")
end
@require PkgB begin
 global pkgB = true
 pkgA && pkgB && include("file.jl")
end

but that solution is too verbose for more than 2 packages.

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