On Saturday, 13 September 2014 at 20:10:55 UTC, 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 { ... })
Heh, I like how he says static if was proposed by "Walter Brown."
;)
Is it just me or did it seem like most of the stuff in those
slides is already in D? I don't follow C++.