Skip to content

Should use of use (rather than import) always generate a warning with --warn-unstable? #28017

@bradcray

Description

@bradcray

Something I've been wondering about recently is whether using the use statement should always generate an unstable warning—not because use itself is an unstable language concept, but because programs that rely on use are inherently unstable as the modules that they are using change and evolve. I say this as a huge proponent of use when sketching out code on a daily basis, but not in code that is being written to be stable / bulletproof over the long-term (which is where I think of --warn-unstable as being most valuable).

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