On 3/20/15 3:52 PM, welkam wrote:
On Friday, 20 March 2015 at 22:01:35 UTC, deadalnix wrote:
Now end up you data gathering :
Turn them around (sed can do that for you), recompile, benchmark, and
see that it does not change anything at the end.
I do not know exact implementation of D compiler but I guess it
generates code and then optimises it away. If thats the case then you
slow down your compilation unnecessarily. Also having language construct
that is being used only 15% of the time correctly is not great. And D
has foreach. In C++ world this is even worse.
Is this a big problem? Not really, but its still a problem.
Are you sure you're not missing the part where D's ++var and var++
generate identical code if the result isn't taken? -- Andrei