octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36743] Octave:matlab-incompatible warning war


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #36743] Octave:matlab-incompatible warning warns about Octave's own files
Date: Tue, 15 Sep 2015 14:23:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1

Follow-up Comment #5, bug #36743 (project octave):

Maybe this warning ID ought to just be removed completely.

Here's my argument. This warning ID is only useful to write Matlab code. For
that purpose, it needs to identify Octave only syntax (auto-increment,
double-quotes, endifs, etc) and use of functions with options not present in
Matlab.

We are only covering the first case which is very very easy for the user to
identify visually, and an even easier job for any text editor (exception for
automatic broadcasting).

The second case is much more difficult for the user and therefore the most
useful. This would require us to go through all the octave code, and throw
warnings when a specific codepath is followed (for example, calling linspace()
with a vector instead of scalar). For it to work properly, according to this
bug report, it would also require that a function knows if it's being called
by a "user" or a "core/library" function. We shouldn't be polluting all the
octave and packages code with such warnings, that would be a lot of work to
start, and a lot of maintenance.

If we are not going to cover the second case, this warning is pretty much
useless and will only provide a false sense of security to the user.  We might
as well remove and be done with this.

Also, I wonder how much of a performance issue is to check at every endif,
endfunction, autoincrement, automatic broadcasting, etc, the warning status of
the id.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36743>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]