"Andy" == Andy Burnett andy.burnett@knowinnovation.com writes:
Andy> If there were no embedded arrays I would just do something like:
Andy> model do: [:each| html listItem: (each asString)]
Andy> But as soon as I have embedded arrays, my mind goes a bit blank and I start Andy> thinking about recursive routines, and that doesn't seem very Smalltalk at Andy> all! So, what is the OO way to do this?
Create a visitor pattern. Teach each of strings and arrays how to present themselves.