help-octave
[Top][All Lists]
Advanced

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

Re: What should be the extension of octave files?


From: Przemek Klosowski
Subject: Re: What should be the extension of octave files?
Date: Tue, 28 Feb 2006 09:18:24 -0500 (EST)

   that .oct is already used for something else. But some such extension 
   would really be useful from an editor point of view.

   For example, if you were a vim developer and you see a .m file, should 
   the syntax highlighting correspond to that of matlab or should it 
   correspond to octave? What do other editors like emacs etc., do in these 
   cases?

It seems to me that you are trying to introduce a distinction where
there shouldn't be one. It is true that there are minor syntactical
differences between Octave and the other leading brand. Note, however,
that this is not an Octave-vs.-Matlab problem: even if you exclusively
used just one of them, you still could write code in a particular
flavor. For example if you are using Matlab nestable block comments:

    %{
    block commented text
    %}

your code is incompatible with earlier Matlab and highlighting code
editors. Would you propose to have a separate Matlab file extension
for this case, as well?

I think a better approach is to deal with differences: fix the highlighting
so that it recognizes syntax flavors; decide which syntax you use in your
files; agree to use the newest versions; finally, write conditional code
that runs different branches after detecting which interpreter it's running in.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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