We should deprecate -release

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon Jul 15 18:20:14 UTC 2024


On 16/07/2024 6:14 AM, Walter Bright wrote:
> On 7/14/2024 1:44 PM, Steven Schveighoffer wrote:
>> The biggest problem I have, I guess, is that it's called "release". It 
>> fools people into thinking you should use it for released code.
> 
> It's an issue I've run into repeatedly. Reviewers not familiar with a 
> compiler look for a "release" switch for benchmarking.

Right, but it's dmd we are talking about.

A compiler that no matter what switches are set internally or externally 
cannot compete with ldc or gdc.

It is better to slap a message both in the version/help message of the 
compiler and on the site that says "don't use dmd for reviewing of 
performance of D use ldc/gdc instead".

Given this, it is better to simply remove the switch as it fools people 
into doing unsafe things that give them a very bad day.



More information about the Digitalmars-d mailing list