Skip to content

The todo! macro causes a not yet implemented panic message? #96131

@beyarkay

Description

@beyarkay

Not sure if this is the correct place for this question, but what is the reasoning behind the todo! docs making the difference between todo! and unimplemented!, but then the todo! macro results in an error like:

thread 'main' panicked at 'not yet implemented', ...

It seems really counter intuitive to me. Is there a reason why the panic message is not:

thread 'main' panicked at 'still to do', ...

or a different panic message that's without a doubt not related to the unimplemented macro? (for consistency with how much the docs stress the difference between them)

For reference, here's the paragraph for the difference between unimplemented! and todo!:

The difference between unimplemented! and todo! is that while todo! conveys an intent of implementing the functionality later and the message is “not yet implemented”, unimplemented! makes no such claims. Its message is “not implemented”. Also some IDEs will mark todo!s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions