Skip to content

condition! macro should support multiple declarations #4344

Closed
@ghost

Description

It would be nice to be able to write

condition! {
    foo: int -> ~str;
    bar: char -> bool;
}

instead of

condition! { foo: int -> ~str; }
condition! { bar: char -> bool; }

for modules that define a number of conditions.

This should only require a small change to libsyntax/ext/expand.rs once macros are capable of expanding to multiple items, per #4021 and #3086.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions