[ic] Opinions sought on [loop-next]

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Fri May 31 08:54:01 2002


On Fri, May 31, 2002 at 05:26:12AM -0600, Webpraxis Consulting Ltd. wrote:
> Hi all,
> I'm a newbie IC user and I've had my first experience with the [loop-next]
> tag.
> 
> It came as a shock to see the whole output from the loop iteration being
> suppressed. This is truly counter-intuitive compared to Perl's 'next'
> command. Accordingly, there's no one-to-one equivalent. When faced with
> nested loops, one is forced to use [if] constructs with the attending
> stylistic complexities. Moreover, IC's way would seem to promote some
> rather ugly coding practices where one could have an extensive output
> sequence and then suppress it at the last stamement. I've coded in many
> languages over the last thirty years and I've never seen such a coding
> pragma 'til now.

Historically, ic and the [tags] have evolved mostly to help 
**non-programmers**.  If you prefer to embed perl in your ic
pages, do that.  :-)

> 
> I would suggest that the current [loop-next] tag be modified to behave like
> its sibling, the [loop-last] tag, where one has the choice of
> allowing/suppressing the loop output. Better yet, give me a straight
> implementation of Perl's 'next' and 'last' commands and introduce a new
> tag, say [loop-suppress], which would control only the loop's buffered
> output based on some condition.
> 
> Just my $0.02 on the subject. Should my rantings strike a chord, please let
> me know. I'll gladly pass on a recommendation to the IC gurus.
> 
> Cheers,
>  
> Yves Beaudoin, Ph.D., President,
> Webpraxis Consulting Ltd.,
> Edmonton, Alberta, Canada, T5R 5S5
> E-mail: post@webpraxis.ab.ca
> 
> Owner of the Virtual Railroad:
> www.webpraxis.ab.ca/vrr/
> 
> 
> 
>                      
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux