On Mar 27, 2006, at 10:14 AM, Jonathan Gardner wrote:

> On Saturday 25 March 2006 21:26, Beau Hartshorne wrote:
>> Jonathan, I think I asked you about this before, but I can't find the
>> thread. Why does Signal require us to registerSignals before we use
>> them? Can't we do this out in connect()? Dojo's implementation seems
>> cleaner:
>> http://dojotoolkit.org/docs/dojo_event_system.html
>>
>
> To prevent typos and to encourage implentors to document their  
> signals in the
> object that provides them.

I'm going to have to disagree here.  Unless there's some technical  
reason why an explicit registerSignals is necessary, we should just  
let implicit registration happen.  Writing less code and more  
importantly requiring less explanation is a good thing.

I don't believe that the time and effort saved by detecting typos or  
compelling people to "write documentation" is going to be significant  
compared to the time and effort saved by not having to do all that  
extra typing.  Hell, more typing is more typos anyway... probably a  
wash or a net loss in typo-saving.

-bob




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to