proboscis / pinjected

MIT License
10 stars 0 forks source link

Make injection key BindingKey rather than a string #5

Closed proboscis closed 4 months ago

proboscis commented 1 year ago

Currently, we use a simple string as an injection key, and the namespace is globally shared. This makes the design very large in terms of namespace and causes naming issues over time. Also, we currently register @injected_function and @injected_instance implicitly to all the designs. We plan to make this implicit bindings have a namespace and make it not injectable to everyone, so that the injected variables within a same module can easily share the injection while far unrelated modules don't get affected by the helper injected function's namespaces

proboscis commented 4 months ago

Done since v0.2