Skip to content

Request: Powerful use-case for macros #1972

Open
@rebcabin

Description

@rebcabin

Issue #1908 is a plea for CTR in LPython in the distant future. CTR enables macros. However, even a special-purpose, simplified macro system à la macropy would be immediately useful for cases like the following:

    assert a_char == '(', "a_char == '('"

With even very simple macros, this could be shortened to

    assertm a_char == '('

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions