----- Original Message ----- From: "Edward Rayl" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 2:52 PM Subject: Re: plucker distiller Java API
> > > > > >Ideally, every status message that the Python parser produces should have a > >corresponding callback method. This means you'll have to fire the callback > >events from within the Python parser itself. That said, I don't know Python > >let alone the specifics of the parser, so I don't know it that's possible. > > > > > Why not a single callback with a status type and string? > Because method names can be far more descriptive. If you have only a single callback method, you make the callback implementation responsible for parsing status types, which is error-prone, especially if you have many kinds of events. Why not call a specific method with a descriptive name for each type of event in the first place? This makes the callback interface pretty much self-documenting (that is, if you choose good names) and is much more programmer-friendly. The callback interface should be seen as an event handler. Regards -Laurens _______________________________________________ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
