-preview=safer for D

matheus matheus at gmail.com
Sun Dec 15 12:05:46 UTC 2024


On Sunday, 15 December 2024 at 10:09:08 UTC, claptrap wrote:
> issues, something like..
>
> "42 memory issues found, uses the "-safebydefault" switch to 
> find out more"
>
> That will keep nudging people, and also gamify it a bit. People 
> like having a metric they can work on.
>
> It **may** also work on the grounds that people will want the 
> number as low as possible if they are publishing their code. I 
> mean if everyone will see that message when its compiled.

I understand your point, but maybe some people will see that 
warning as a "ticket" instead of "secretary" as you pointed.

I remember that one day I decided to takle all the warnings in 
the company code, until the next release new warnings started to 
pop-up again.

Some people are lazy and they will just write/do things to get 
the job done unfortunately.

But let's say you have these warnings by default, if people do 
something about then nice, otherwise they may even complain this 
is just slowing down the compiler.

I wonder how OpenD are doing since they turned this feature on in 
their branch.

Matheus.


More information about the Digitalmars-d mailing list