octave-maintainers
[Top][All Lists]
Advanced

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

Re: Deprecating flipdim


From: Rik
Subject: Re: Deprecating flipdim
Date: Tue, 23 Sep 2014 09:56:34 -0700

On 09/23/2014 04:16 AM, address@hidden wrote:
> Hi
>
> during the codesprint this weekend (before I figured that the subject
> was going to increase line coverage), I added a new function, flip,
> and deprecated flipdim [1]. The function flip is exactly the same as
> flipdim, the only difference being that the first exists in Matlab
> (since R2014a - only 10 years after Octave).

Carne,

Another way to look at it is that Octave is a superset of Matlab.  As long
as flip is added, so that users can run their Matlab scripts in Octave, we
don't necessarily have to get rid of flipdim.  I actually like the name
flipdim because it is more meaningful to me than just flip.  Within Octave
we occasionally do this where we have aliases for the same function.  There
is 'lgamma', the C library conventional name, and 'gammaln', the Matlab
name.  Both co-exist peacefully.  Similarly, there is 'isbool' and
'islogical'.  Maybe you want tao undeprecate flipdim and make one function
an alias of the other.

--Rik

>
> I'm kinda regretting deprecating it because package maintainers will
> not have a chance to write code that works in both 4.0.X and 4.2.X
> without triggering warnings or errors. I think it kinda makes sense to
> deprecate flipdim in favour of flip (although it does annoy me folding
> to Mathworks every time), but it maybe it could go through a phase of
> semi, non-official deprecation, where it does not cause any warning,
> it is only noticed on the NEWS, and only properly deprecated after 1
> release.


> Carnë




reply via email to

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