Skip to content

Multiple evaluation in macro_rules! macro #78

@Hasnabruzzn

Description

@Hasnabruzzn

It would be great to have a chapter on the problem of double / multiple evaluation in macros (and how to avoid it).

My very first macro is the Rust version of the infamous MAX from the C world.

Playground

It would be nice if Rust wouldn't allow this or at least show a warning... but I guess this is not the proper place for this discussion.

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