From: Chuck E. <ec...@mi...> - 2001-04-26 02:57:04
|
At 09:28 PM 4/25/2001 -0500, Ian Bicking wrote: >While seems very procedural to me -- you *do* something each time >through the while loop. For loops seem more than sufficient >otherwise: if there's performance problems with generating the entire >sequence ahead of time, you can always use whatever that special >method is, and generate values on the fly. Yeah, although batching does need to be there out of the box. It's a common enough need that it should be built in. I think dtml uses dtml-in. Hmm, how about just #batch? >I don't think anything should be changing during the evaluation of the >template, hence a while loop wouldn't be useful -- it would always >loop infinately. Now, you *can* set values... and maybe some people >will think better by setting and testing values, so maybe it makes >sense. But I would prefer map and filter. > >Is there a #break and #continue? I do find those quite convenient. Hey, was that sarcasm? You just got done explaining how you don't think #while should be there... -Chuck |