Skip to content

Suggestion: Refactor solvers to share main function #73

@casey

Description

@casey

I would suggest refactoring the solvers to share a single main function. Benefits would be:

  • I found a bug in Use device number supplied in args #72 which had been copied into four different files, since they were part of the main function which is duplicated across multiple files.

  • If there was a single main function shared by all the solvers, features added to that main function wouldn't need to be copied to all the main function.

Also, it would be an opportunity to rewrite the main function in rust, because why not :)

Additionally, if the main function was separated from the solvers, individual solvers could be statically linked into other programs where the flexibility of dynamic linking isn't required.

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