Skip to content

error!() is too easily conflatable with fail!() #7386

Closed
@bstrie

Description

@bstrie

Before they were both macros, the name of this log level was defensible:

// In days of yore...
log(error, "foo");
fail "foo";

Nowadays, this is a wart in the making:

// Rust Certification Exam, Question 22: how do these differ?
error!("foo");
fail!("foo");

The other log level macros (info, warn, and debug) are fine. I really don't care what we replace error with, though I propose alert! if nobody has any sublime suggestions.

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