Skip to content

Wishlist: delete_method #20048

Closed
Closed
@timholy

Description

@timholy

With #265 fixed, there has been a substantial drop in the number of reasons to restart a julia session. One of the remaining reasons, changing a type definition, seems hard to fix. However, another reason (one that might be pretty easy now?) is to remove a method specialization that affects dispatch. For example, let's say I've defined

foo(x) = bar(x)
bar(x) = 1
bar(x::Int) = 2

If later I decide I didn't need/want that specialization bar(x::Int), it seems my only choices are to (1) define it to have the same code as the generic bar method, or (2) restart julia.

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