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

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

[Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i' and 'j', but not other variable names
Date: Fri, 3 Jun 2022 02:10:45 -0400 (EDT)

Follow-up Comment #27, bug #62552 (project octave):

Another stab at the note in the NEWS file:

- When an expression involving operators could be interpreted arbitrarily
either as command style syntax or function style syntax, it is
interpreted as command style syntax in more cases than before.  To still
be interpreted as function style syntax, inplace operators (`+=`, `-=`,
`*=`, `.*=`, `/=`, `./=`, `\=`, `.\=`, `^=`, `.^=`, `|=`, `&=`) must now
either be followed by a whitespace character or must not be preceded by a
whitespace character.  For expressions with binary operators (`+`, `-`,
`*`, `.*`, `/`, `./`, `\`, `.\`, `^`, `.^`, `|`, `&`, `||`, `&&`), the
same rules apply.
E.g., `a + b`, `a+ b`, or `a+b` are valid expressions 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 a command syntax expression
equivalent to the function syntax expression `a ("+b")`.


I'm not sure about the usage of the word "arbitrarily" in the first sentence.
I'd like to express that - at least theoretically - these expressions could be
either command style or function style. But the "meaning" in either of these
interpretations are different.
Is there a better English word for that?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62552>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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