Jonathan M Davis:

It also doesn't work with stuff like RAII and a lot of conditional compilation. Particularly with eponymous templates, it's _very_ common to have unused variables. Warnings or errors for unused variables would be highly detrimental to D.

A warning for unused variables will also help D programmers avoid some bugs and keep their code tidy.

Bye,
bearophile

Reply via email to