Re: how do people feel about exit function from loop




"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:OArXqJs0HHA.3916@xxxxxxxxxxxxxxxxxxxxxxx

"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote

* Does the loop index have a meaningful name?

Does "n" count as a meaningful name? :)

I use single letter variables almost exclusively as for loop indexes
used with
arrays, so to me it is.


You must be one of those GenX coders, eh? <g> I come from an era when
3 was the magic number for characters in a variable name. idx (index),
itm (item), row & col, etc... About the only time I'd use a single
letter for
an iterator would be for referencing X and Y coordinates and the
occasional
throw-away test routines.


I use idx 'n such, mainly because it always seemed more readable and more
amendable for search 'n replace. But then I occasionally side to the dark
side and use i% and n&. <g>

-ralph


.


Loading