Home

Neil Cerutti wrote:
> On 2007-08-01, Cameron Laird <claird@lairds.us> wrote: .
>> I want to re-emphasize the "triple-quote it" tip mentioned
>> earlier in this thread. I think the original questioner
>> will find this quite satisfying, if I understand his situ-
>> ation at all.
>>
>> *I* certainly have source code with embedded "junk"
>> commented out as multi-line strings.
>
> I used to do that, but now that I use doctests so much it's
> infeasible to comment out arbitrary code that way, since they
> can't necessarily nest.

If you consistently use e.g. ''' for doc strings, you can use
""" to comment out code blocks.

I still think it's better to do test-driven programming though.
Then you will very rarely have large blocks on non-working code.

previous
next

C++ Feature Help
Re: How to assign a function to another function
Re: Glade + Python = No GUI
Re: __gnu_cxx::hash_set efficient union
Is this a STLport bug
Fundacja Avalon
Mimo Wszystko
Fundacja Iskierka
Nasze Dzieci
Podaruj Zycie