> From: Alex Burr [mailto:[email protected]]
>>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 Yes I think this is an excellent match , work with ranges/collections ( like LINQ) at the higher level to reduce errors and increase flexibility . Which matched with our UTF-8 discussion , and encourage this for most programs but you will still need to have some lower level lib functions buried away somewhere where they are needed. Ben _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
