debug = x overrides command line

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 24 05:45:21 PDT 2014


On 10/23/14 3:31 PM, Walter Bright wrote:
> On 10/23/2014 11:40 AM, Daniel Murphy wrote:
>> "Steven Schveighoffer"  wrote in message
>> news:m2avtc$15e3$1 at digitalmars.com...
>>> I think there is a problem though. What if you leave your debug in by
>>> accident? Now your pure code isn't so pure, and you have no idea.
>>
>> What if you leave any other form of debug code enabled by accident?
>> The answer
>> is to use version control, and make a quick pass over changes before
>> you commit.
>
> Version control has been successful at eliminating such mistakes in my
> experience with github.

On your own 1-person projects, or just with 2+ reviewers for every commit?

In my experience, source control does not stop me from committing debug 
code by accident.

Seriously, the idea of "just avoid committing mistakes" or "just use x 
version control system" is not a very palatable answer.

-Steve


More information about the Digitalmars-d mailing list