Jonathan S. Shapiro <[email protected]> wrote:

>
>At the same time, we don't want to have a procedure call for every single 
>character indexing operation. So we need to get that kind of loop turned into 
>something that looks/smells like:
> 
>  foreach chunk in string
>    while chunk.notEmpty()
>      (c, chunk) = chunk[0], chunk.rest() 
That's reminiscent of the range based approach advocated by Andrej Alexandrescu:
http://www.informit.com/articles/printerfriendly.aspx?p=1407357

It doesn't seem to have provoked great loathing. Some reactions here:
http://stackoverflow.com/questions/838721/c-iterators-considered-harmful


Alex
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to