On Mon, Feb 16, 2009 at 3:13 PM, Jan Rychter <[email protected]> wrote: > There is one widget-children slot -- how do you combine the various > children that each of your parent widgets has? Errr, I see. I thought the word 'inheritance' referred to parent-child relationship in the widget tree, not the actual Lisp type inheritance. That's what threw me off into the abyss of bewilderment :) Everything is clear now, thank you.
My vote then goes towards the append method combination for some get-widget-children method. It seems to fit into this near perfectly, is easy to manipulate, and if I saw it I would immediately understand what it's for, while your solution was actually more confusing :) I don't think newbie-friendliness is a good argument not to use advanced CL features - if that were the goal you might as well write weblocks in Java. I also don't think method combinations are very difficult to debug (you can just print the return value of the function). These are my two cents. > No, the goal was for you to override render-widget-children. Ok. I think that in most cases people will want to interleave child widgets with their own markup so it makes more sense to render child widgets in the specialization of render-widget-body for widget, and let people render them on their own when they specialize render-widget-body. It seems like this would be optimizing for a more common case. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" 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/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
