Wish: Variable Not Used Warning

Nick Sabalausky a at a.a
Fri Jul 11 10:33:21 PDT 2008


"BCS" <ao at pathlink.com> wrote in message 
news:55391cb32f16f8cab1577d9fd978 at news.digitalmars.com...
> Reply to Markus,
>
>> On Thu, 10 Jul 2008 12:51:47 -0700, Walter Bright wrote:
>>
>>> Robert Fraser wrote:
>>>
>>>> In a final release, unused things are signs of errors. When writing
>>>> code, unused variables (perhaps they were used in a commented-out
>>>> section?) are a dime a dozen.
>>>>
>>> Yes, that's why I find the warning to be a nuisance, not a help.
>>>
>> I have thought this issue more closely now about few hours.  I'll try
>> write a more comprehensive answer to my home pages, but something now
>> quickly thought;
>>
>> * What is the purpose of the source code? There is probably lots of
>> answers, but I will present you just one; the source code is aimed for
>> human readers & writers.
>>
> [...]
>> I know that
>> that sounds something humanists, but really - if the source is not
>> meant to be understood by limited capability of humans, why the hell
>> we are using (1) modular languages, (2) high level languages, (3)
>> _indentation_, (4) __COMMENTS?!?__?!?
>>
>
> counter point: perl/regex

I'm not sure that's much of a counterpoint since those are widely considered 
by everyone exept total die-hards to be unsuitable for most non-trivial 
tasks.






More information about the Digitalmars-d mailing list