Just look at the existing info on event types at
http://docs.model-glue.com/wiki/HowTos/HowToUseTypedEvents#HowToUseTypedEvents.

I can think of many cases where the majority of my events which are
responsible for rendering output would need the "TemplatedEvent" type.
 By allowing me to specify that as the default event type I can avoid
having to specify it on each event handler than needs it.

The latest idea from Chris extends that even further, where one could
group together event handlers that share a common type (or types), and
then specify that type in the event-handlers block, and thereby avoid
having to specify it on each event handler.

It's not something that everyone would use (nor would they have to use
it), but I definitely see value in it.


On Wed, May 20, 2009 at 8:11 AM, David Henry
<[email protected]> wrote:
>
> I'm still not sure I see a clear use case for a default event type.
>
> Can anyone show me an example where my time spent learning MG,
> developing an application, and maintaining that application is reduced
> with this feature?
>
>
>
>
> Bob Silverberg wrote:
>> I think that would be the most useful implementation as well.  I was
>> just addressing your concerns of adding complexity to the xml.  It's
>> true that adding a single attribute to the <event-handlers> element
>> doesn't add that much complexity - I think it's more in the way that
>> people will then have to write their <event-handlers> blocks, meaning
>> that they'll have to put thought into which events to group into which
>> <event-handlers> blocks. Not that that's a bad thing, but it does
>> introduce one more thing to think about.
>>
>>
>
> >
>



-- 
Bob Silverberg
www.silverwareconsulting.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to