Skip to content

Enforcing implementations of certain methods in classes #254

Closed
@czgdp1807

Description

@czgdp1807

Description of the problem

As highlighted in #252 there are good chances that API can become inconsistent if certain methods aren't named properly and such mistakes are missed in the review process. So, a solution should be proposed to solve this problem satisfying the following conditions,

  1. A set of certain methods should be implemented(i.e., shouldn't raise NotImplementedError) in every class. If some methods from the given set of methods isn't implemented then that should be detected in CI.
  2. The solutions should be simple enough such that it can be easily ported to C++11.

One of the approaches is described at #252 (comment)

Example of the problem

References/Other comments

Please discuss your approach first rather than jumping to code directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions