September 30, 2014 Re: Stroustrup's slides about c++11 and c++14 | ||||
---|---|---|---|---|
| ||||
Posted in reply to eles | On Tuesday, 30 September 2014 at 07:04:39 UTC, eles wrote: > I think the correct counter-attack is simply to write a note showing those cases that concepts lite do not solve, at least not as nicely as static if would have. It is probably not a good idea to bring more attention to it… some might end up agreeing with Stroustrup. "static if" is a troubled construct and too close to macros to be a good language design feature, it is in the same bag as string mixins. "if(constexpr…)" + concepts etc better fit C++. > Eventually with D examples. It will bring audience. Yes, this a better idea. Write code examples that compare common C++ patterns to D where D looks cleaner. |
Copyright © 1999-2021 by the D Language Foundation