Skip to content

Is it possible to use functional programming here? #3

@scc-tw

Description

@scc-tw

https://github.com/CollieIsCute/philosopher_multithread/blob/d8b1210e3865719ffb4665e6229167826bae1bb6/programs/main.cpp#L12:L18

It looks like a little bit duplicate for some codes.
Can we pass a lambda function and bind for those references automatically, and it would look clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions