8000 Refactor Push() to remove need for int argument · Issue #9 · vit-vit/CTPL · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Refactor Push() to remove need for int argument #9
Open
@zyvitski

Description

@zyvitski

From using the CTPL library I have noticed that the fact that push() requires the first argument of the function being pushed makes using the library difficult at times.

In a way it forces anyone using the library to force their interface to conform to the need for that int parameter. This can be achieved by either conforming your interface to work with the pool or by wrapping your target function with another function that adds the leading int parameter.

I believe that it would make the library more accessible, transparent and user friendly if an overload of push() was provided that allowed you to push a function onto the pool without the need for the leading int parameter.

I would be willing to work up the changes and add them as a pull request if desired, but I wanted to run the idea by first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0