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

eles via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 13 13:10:53 PDT 2014


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 { ... })



More information about the Digitalmars-d mailing list