Iterators Must Go video online

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Aug 4 09:13:34 PDT 2009


Sergey Gromov wrote:
> Mon, 03 Aug 2009 12:47:40 -0500, Andrei Alexandrescu wrote:
> 
>> A while ago I mentioned the video of my BoostCon keynote "Iterators Must 
>> Go" will be soon available online. Here it is:
>>
>> http://boostcon.blip.tv/
>>
>> Andrei
> 
> Nice talk!  The "Try THAT with iterators, @"($#* !" part was especially
> entertaining. XD
> 
> What I didn't get was why range.front is so much superior to *i.  At the
> end of the day they're both just functions returning whatever they
> please.

range.front could insert a cheap check for validity, i.e. 
assert(!empty). *i has no chance; it puts the burden of precondition on 
its user.

Andrei



More information about the Digitalmars-d mailing list