[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector |
Date: |
Tue, 30 Jan 2024 13:10:07 -0500 (EST) |
Follow-up Comment #5, bug#65228 (group octave):
This has come up before. See bug #55622 for more extensive discussion.
There were mixed opinions. I consider it stupid, confusing, and an artifact
of Matlab's implementation rather than a design choice. But, jwe has pointed
out that this is the documented behavior, that Matlab follows its
documentation in this case, and that Octave is therefore Matlab-incompatible
which may surprise some coders. I would argue, in turn, that well-written
code should be clear as to purpose and therefore it would be better for
programmers to recode their for loop rather than use this "feature". In sum,
we didn't make a change in 2017, and declined again in 2020. Maybe opinions
have shifted since then.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65228>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, A.R. Burgers, 2024/01/30
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, Markus Mützel, 2024/01/30
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, John W. Eaton, 2024/01/30
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, Nicholas Jankowski, 2024/01/30
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, Markus Mützel, 2024/01/30
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector,
Rik <=
- [Octave-bug-tracker] [bug #65228] matlab for loops on empty row vector, Nicholas Jankowski, 2024/01/30