eles via Digitalmars-d
2014-09-13 20:10:53 UTC
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 { ... })
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 { ... })