Two of the most common applications of callbacks is registering listeners for various types of GUI events (mouse moved, window resized, button pressed) and creating handlers for SAX events when processing XML. More generally, in my HL7 code I often use a simple form of syntax directed translation (You see this in a message, you do that.) There's always the alternative of "the big switch", but it has it's own problems. How would you handle these cases?

===
Gregory Woodhouse
[EMAIL PROTECTED]

"It is a capital mistake to theorize before one has data."
--Sir Arthur Conan Doyle



On Aug 24, 2005, at 7:36 PM, Ruben Safir wrote:

But this is an indirect reference and for the life of me, I don't know
why language designers fall in love with stuff like this. The pitfalls are everywhere and there is always a better way to design something than
doing this.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to