Skip to content

Infix operators as first-class functions #2052

@Dretch

Description

@Dretch

Infix operators can't be used like normal functions. Instead of:

std::sort::merge_sort(<=, some_strs)

one must write:

std::sort::merge_sort({|a, b| a <= b}, some_strs)

It would be nice to not have to write the lamda.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions