Skip to content

need mechanism to deprecate bindings #11200

@timholy

Description

@timholy

While we can deprecate functions, our current mechanism to deprecate types is to define the equivalent of

export Range1
const Range1 = UnitRange

This does not trigger any deprecation warning for using the type itself. #11046 was therefore more disruptive than one might have ideally wished (see JuliaGraphics/Tk.jl#98 and cascading breakages in any package that depends on it, plus at least timholy/ProfileView.jl#32), in that it caused actual package breakages. If we'd had a deprecation system in place, the appropriate changes could have been made any time in the past year.

I presume this is something that needs to be handled at the parser level?

(Off-topic: should we have a "wishlist" label as distinct from bug reports?)

Metadata

Metadata

Assignees

Labels

help wantedIndicates that a maintainer wants help on an issue or pull request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions