asphalt icon indicating copy to clipboard operation
asphalt copied to clipboard

Introduce resource namespaces

Open agronholm opened this issue 9 years ago • 1 comments

It would be cool to be able to access all resources by their resource name like ctx.serializers.json. The names would also be accessible using dict-like access (ctx.serializers['json']). The biggest challenge here is making this work properly with a chain of contexts.

Perhaps even multiple levels of namespaces could be used? Like ctx.irc.networks['Freenode'].channels['#asphalt']?

This would have to be changed in all subprojects at once for consistency.

agronholm avatar Dec 21 '16 19:12 agronholm

This is too complicated. Deferring to a future release.

agronholm avatar Mar 18 '17 22:03 agronholm

I'm dropping the idea of global names for resources. They will remain namespaced under specific interfaces.

agronholm avatar Dec 04 '22 16:12 agronholm