Stroustrup's slides about c++11 and c++14

Sean Cavanaugh via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 14 18:44:57 PDT 2014


On 9/13/2014 3:10 PM, eles wrote:
> This presentation:
>
> https://parasol.tamu.edu/people/bs/622-GP/C++14TAMU.pdf
>
> He criticizes C99 VLA (slide 24) as being "an abomination"
>
> But the surprise comes at the end (slide 57), where he also
> criticizes... the static if as being "a total abomination". Well, this
> is D, I told myself.
>
> Are those points valid?:
>
> static if is a total abomination
> • Unstructured, can do everything (just like goto)
> • Complicates static analysis (AST-based tools get hard to write)
> • Blocks the path for concepts
> • Specifies how things are done (implementation)
> • Is three slightly different “ifs” using a common syntax
> • Redefines the meaning of common notation (such as { ... })
>

Its a downright cute and cuddly abomination to have as opposed to the 
one that exists in the world of #define and its minions 
#if/#ifdef/#elif/#if defined()/#else/#endif




More information about the Digitalmars-d mailing list