Skip to content

Implement Default for WeakPtr? #77

@raphlinus

Description

@raphlinus

In the code I'm writing, it would be useful to have Default on WeakPtr so I don't need to wrap it in an extra layer of Option. This would make it more like std::rc::Weak and I think presents no problem because the null pointer is valid.

Happy to send a PR, I'm filing as an issue first to verify that it would be wanted, and in case there's a problem with the idea I'm missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions