On Sun, 25 Aug 2024 at 20:46, Nicholas Wilson via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
On Sunday, 25 August 2024 at 10:28:57 UTC, Manu wrote:
> On Sun, 25 Aug 2024 at 19:26, Dom DiSc via Digitalmars-d <
> digitalmars-d@puremagic.com> wrote:
>
>> On Saturday, 24 August 2024 at 17:10:39 UTC, Manu wrote:
> I hope we can agree that this is definitely not 'kind of the
> same'...
>
> And that's to say nothing about the damage it causes to the
> debug info, and the ability to breakpoint and step through the
> code in a sane way. Completely unacceptable hack. I won't give
> this pattern the dignity of my fingertips approval under any
> circumstances. It should not be legitimised.

was that with DMD without optimisations, or LDC with
optimisations?
If this is the former, that's probably that's to be expected.

Of course it's expected; that's why I'm saying it's a completely insane pattern.
Code quality without optimisations is extremely important, for the reasons I said above; debugability, breakability, stepability.
If you abandon debug code quality, you end up with rust; completely unworkable, with no tools except printf like it's 1980-something.

The amount of time you spend working on debug code vs release code is like 10,000:1. Optimisation quality is important obviously, but debug code quality should never be overlooked.