[TransWarp] Proposed peak.binding API change

Jean Jordaan jean at upfrontsystems.co.za
Wed Sep 3 10:41:02 EDT 2003


> The primary downside of 
> 'Factory' is that it seems to imply *ongoing* production of values, 
> rather than a one-time production.  

How about a name that implies one-time production?

binding.Make(aFunction)
binding.Make(someType)
binding.Make("somemodule.sometype")
binding.Make(default=value)
binding.Make(lambda: expr)

binding.Bind(...)  would be totally neutral, and would work
with binding.Require(...) ..

Just noodling,
-- 
Jean Jordaan
http://www.upfrontsystems.co.za




More information about the PEAK mailing list