Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: check syntax errors in m file
Date: Tue, 22 Jun 2010 15:38:22 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <hvqlde$4bp$1@fred.mathworks.com>
References: <h37tdl$gpd$1@fred.mathworks.com> <hve52s$1o9$1@fred.mathworks.com> <hvfu3l$cd0$1@fred.mathworks.com> <hvjcr0$j79$1@fred.mathworks.com> <hvo059$fcq$1@fred.mathworks.com> <hvod1p$855$1@canopus.cc.umanitoba.ca> <hvoirg$g9e$1@fred.mathworks.com> <3n_Tn.2420$Yo5.136@newsfe01.iad>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1277221102 4473 172.30.248.35 (22 Jun 2010 15:38:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Jun 2010 15:38:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2305417
Xref: news.mathworks.com comp.soft-sys.matlab:647069

Walter Roberson <roberson@hushmail.com> wrote in message <3n_Tn.2420$Yo5.136@newsfe01.iad>...
> That policy will just lead to people routinely turning off "all 
> instances in file" of warnings without examination. The medicine will be 
> worse than the problem.

That, as you point out, would be bad programming practice too. I would discourage that as much as I would discourage having warnings left over.

> We turn off warnings only when we completely understand their causes and 
> know that the existing code is appropriate. Sometimes we don't 
> completely understand the code we have written or sometimes the warning 
> points out future work that should be done and turning off the warning 
> would hide that hint from us. As long as the warning is there it is 
> "nag-ware" prompting us to continue thinking about the issue.

See http://blogs.mathworks.com/desktop/2008/03/17/whats-on-my-todo-list for an alternative (perhaps better) method for keeping track of hacks and todo items.

As I said in the beginning, this is my opinion on how to do things. There are infinitely many others, and the best one likely depends on the particulars of each situation. To each, his own.

Thanks,
Mason