Unused variables and bugs

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 22 21:07:45 PDT 2014


On Sat, 23 Aug 2014 03:50:13 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> - versioning
refactor it, so that shared code goes to separate functions. nested
functions especially helpful here. i'm used to this GCC extension.

> - debugging (commenting out debugging code)
why comment it out? if (debug_enabled) is fine and can help when
software fails.

> - virtual functions
they are either abstract or just comment out unused argument names.

> - future-proof function signatures
but why? plan your API. if you need to extend it -- add new API calls.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140823/30e7b82c/attachment.sig>


More information about the Digitalmars-d mailing list