Skip to content

lambda parameters instead of id variables #68

@GunpowderGuy

Description

@GunpowderGuy

Could having to use id variables be replaced with lambda parameters?
eg: instead of this

Id<string> text;
match(variant)(
pattern | as<string>(text) = [&] {
            std::cout << "Text message: " << *text << std::endl;
        })

this

match(variant)(
pattern | as<string> = [](const string& text) {
            std::cout << "Text message: " << text << std::endl;
        })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions