Skip to content

Commit

Permalink
NEWS.9.md: Copy reminder from NEWS.8.md about future string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arungiridhar committed Sep 26, 2023
1 parent 3ef137f commit e9e6f8b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions etc/NEWS.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@ of dimensions in the input array.

- The default string length for the function `rats` has changed from 9 to 13.

- *Continuing reminder of future breaking changes*: There is ongoing work
to implement a Matlab-compatible string class that will differ from a vector
of characters. In Octave, single-quoted character arrays are currently
compatible with Matlab, but double-quoted forms are not, and are likely to
change in future as a consequence of implementing Matlab-style string syntax.
For example, 'foo' will remain a three-element character vector, but
"foo" will become a single-element string object.

*What this means for user code*: If your code currently relies on
double-quoted strings (e.g., "foo") representing character vectors as
opposed to string objects, then start replacing all double-quoted strings
with single-quoted strings in your code over time (e.g., replace "foo" with
'foo'). Single-quoted strings are expected to retain current behavior.
Further, if your code relies on backslash escape sequence interpretation in
double-quoted strings (except in special cases like the `printf` family),
that code may need to change as well.

### Alphabetical list of new functions added in Octave 9

* `isenv`
Expand Down

0 comments on commit e9e6f8b

Please sign in to comment.