changeset 31055:20c9d48487e3

maint: merge stable to default
author Arun Giridhar <arungiridhar@gmail.com>
date Thu, 02 Jun 2022 09:07:37 -0400
parents 34cfde95c5fa (current diff) 201e29541ef5 (diff)
children b437597ec652
files etc/NEWS.7.md
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.7.md	Thu Jun 02 11:09:20 2022 +0200
+++ b/etc/NEWS.7.md	Thu Jun 02 09:07:37 2022 -0400
@@ -88,8 +88,15 @@
 
 - For compatibility with command syntax, inplace operators (`+=`, `-=`,
 `*=`, `.*=`, `/=`, `./=`, `\=`, `.\=`, `^=`, `.^=`, `|=`, `&=`) must now
-be followed by a whitespace character.  That was not a requirement in
-previous versions of Octave.
+either be followed by a whitespace character or must not be preceded by a
+whitespace character.  For commands with binary operators (`+`, `-`, `*`,
+ `.*`, `/`, `./`, `\`, `.\`, `^`, `.^`, `|`, `&`, `||`, `&&`) without
+assignment, the same rules apply.  That was not a requirement in previous
+versions of Octave.
+E.g., `a + b`, `a+ b`, or `a+b` are valid if `a` is a variable.  In
+contrast, `a +b` will throw an error if `a` is a variable.  The latter
+example is now interpreted as command syntax expression equivalent to the
+function syntax expression `a ("+b")`.
 
 - The `mldivide` function (i.e., the `\` operator) now uses an LU
 decomposition to solve nearly singular full square matrices.  This is