Skip to content

Path to kangaru 5 #101

@gracicot

Description

@gracicot

Here I simply want to discuss what we want for kangaru 5. There are a few points I want to see in kangaru 5:

  • All services should be possible to define using the service map. Right now, autocall and supplied services can't really be done in a practical manner using the service map definition.
  • The API should prioritize the service map. services defined as a struct should be special cases.
  • C++17
  • The container should be a template. The container "allocator" should be possible to change and allow statically defined finite container to support zero overhead.
  • constexpr containers.
  • Simplification to the injection model, that includes invoke and the construct function.

I also want a more "conceptified" set of checks. That should also simplify error messages, which simply don't work anymore.

Now, there are a few points that raises questions:

  • If we go full service map, do we still need the construct function in services?
  • If we go full service map, should we allow simply classes to be used as service in the container instead of the service definition?

There may be other questions. If you have suggestion or feedback, please write a comment here. I want to gather as much ideas and improvement for the version 5 as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions