kynesim / kbus

Automatically exported from code.google.com/p/kbus
Other
5 stars 2 forks source link

Consider simplifying the Message constructors #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current Message (Reply, etc.) constructors all allow the first argument to 
be a data-string, as well as a message name (etc).

Consider instead simplifying the constructor to the obvious (first arg is 
message name), and have "from_data" class methods (or some such) for the more 
unusual case.

This should simplify the code, but shouldn't (I think) hurt any use cases.

Original issue reported on code.google.com by t...@tibsnjoan.co.uk on 24 Jun 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Fixed in revisions up to 399 (revision 399 fixes the documentation to reflect 
the changes).

Original comment by t...@tibsnjoan.co.uk on 15 Jul 2010 at 3:28