Skip to content

Clean up exports #2468

@penelopeysm

Description

@penelopeysm

Turing.jl/src/Turing.jl

Lines 80 to 84 in 24d5556

export @model, # modelling
@varname,
@submodel, # Deprecated
to_submodel,
DynamicPPL,

Turing re-exports the entire DynamicPPL module, as shown above. This means that any breaking change in DynamicPPL is also technically a breaking change in Turing.

However, we haven't really obeyed this at all: many breaking changes in DynamicPPL have been released as patch level bumps in Turing. This means that technically, a patch version of Turing could break any code that looks like

using Turing
Turing.DynamicPPL.foo(...)

where foo was something that was changed in a minor release of DynamicPPL.

'But, Penny, who would write such horrible code?' I hear you ask. Well, if nobody would do that, then there's no reason to re-export DynamicPPL ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions