[Nitro] Example Comments

Judson Lester nyarly at gmail.com
Fri Feb 9 13:18:43 EST 2007


> > On the other hand, one of my favorite tricks is
> >
> > #=begin
> >
> > ... experimental code here ...
> >
> > =begin
> > =end
>
> which in no way contradics what I have been saying. ;)
>
Didn't say that it did.  Just sharing, and justifying =begin =end
style comments.

> But yeah.. I haven't thought of that, I always commented both....
> It's kinda like `#if 0   #endif` in C that way..

Yeah, and I can't really say that it's better than if 0; end; in Ruby.
 Except maybe rcov doesn't count comments against executable code.

Judson


More information about the Nitro-general mailing list