One distinction of the `LoaderRegistry` from `Registry` is it overrides 
`.register()` to wrap returned value in a function. 

Full disclosure. I started out with `Registry` alone and at some point I 
encounter value that is a function (e.g. a class) and it gets quite confusing 
whether the `value` can be returned immediately or it is a loader that needs to 
be executed. If both values and loaders can be stored in the same registry, I 
need another mechanism to indicate which is which. This separation was to 
clarify that it is either just values or just loaders.

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/6028 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

Reply via email to