Geir,

Geir Magnusson Jr. wrote:
> what if it returns something you can't iterate over?

You get a ClassCastException :(

> Maybe check the return type first?

I agree. It's your choice if you want to throw something like
VelocityException or some other RuntimeException, or if you want to
ignore the loop and log an error (similar to #if($doesntExist = 'foo')
behavior).

-chris


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to