Re:The reference D compiler is now open source
by lomnakkus on Saturday April 08, 2017 @03:27AM
(#14065791)
AFAICT, yes it was. Obviously, it wasn't accepted as-is, but it was certainly motivated (i.e. "inspired") by the success of "static if" in D.
[ Parent
| on HN ]
Re:The reference D compiler is now open source
by milesrout on Saturday April 08, 2017 @08:32AM
(#14066601)
I do not agree at all. It's very obvious functionality, and would be in D either way.
Re:The reference D compiler is now open source
by lomnakkus on Saturday April 08, 2017 @04:20PM
(#14068794)
I'm not sure I understand what you're trying to say. IIUC the causality in your last sentence is opposite to what've you been arguing? Maybe it's just a typo, but either way you're going to have to provide evidence.
Re:The reference D compiler is now open source
by milesrout on Saturday April 08, 2017 @07:36PM
(#14069667)
I meant 'would be in C++ either way', typo.
C++ has been gaining constexpr features for years. These have nothing to do with D at all, except in the sense that all languages everywhere influence each other slightly. Certainly constexpr wasn't drawn directly from D.
if constexpr was the obvious logical next step. It has been suggested and proposed for years. Yes people formally proposed static if, which was heavily inspired by D's static if, but that proposal was rejected because it was poorly designed, and C++'s new if constexpr is about as different as it's possible for two compile-time conditional compilation constructs to be.