On Saturday, March 26, 2016 at 6:31:32 AM UTC-5, Edward K. Ream wrote:

> this function should be called register_class instead of register_provider
...
> And what *is* happening is that the free_layout class is being told how 
to instantiate my_class, namely by calling provider(c).

Haha.  At last I see why you chose the name "Provider" for your classes.  
In essence, they tell how to instantiate a new instance.  This *is* 
different for various Provider classes.

In fact, though, the Provider *classes* seem to obscure their essence, 
namely defining a provider *method* (or function) that delivers new 
instances.  Imo, the "provider" keyword argument to the *new* 
register_class function would better be called "factory".  This is standard 
terminology, I think...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to