edata_list::iptr p(mylist) ; while ( p ++ ) { p-> dosomething() ; }
Now they've added regex to C++, and its painful just to look at the examples:
std::tr1::cmatch res; str = "<h2>Egg prices</h2>"; std::tr1::regex rx("<h(.)>([^<]+)"); std::tr1::regex_search(str.c_str(), res, rx); std::cout << res[1] << ". " << res[2] << "\n";
Compare to what this would look like in perl:
my $str= "<h2>Egg prices</h2>"; my ($tagstr, $word1, $word2)= $str =~ /<h(.)>([^<]+)/ ; say $word1. ". ". $word2 ;Now, plenty of people have accused perl of being a write only language, but still, someone should have come up with something a little easier to type. Alas, guess we'll just all head over to javascript and get on with implementing solutions.
Labels: c++, c++11, programming
Feb '04
Oops I dropped by satellite.
New Jets create excitement in the air.
The audience is not listening.
Mar '04
Neat chemicals you don't want to mess with.
The Lack of Practise Effect
Apr '04
Scramjets take to the air
Doing dangerous things in the fire.
The Real Way to get a job
May '04
Checking out cool tools (with the kids)
A master geek (Ink Tank flashback)
How to play with your kids