Skip to content

Commit 39839ac

Browse files
committed
Update the mention of annotated features in NEWS
1 parent 2e6ebb9 commit 39839ac

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

NEWS.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ New language features
1111
* The new macro `Base.Cartesian.@ncallkw` is analogous to `Base.Cartesian.@ncall`,
1212
but allows to add keyword arguments to the function call ([#51501]).
1313
* Support for Unicode 15.1 ([#51799]).
14-
* A new `AbstractString` type, `AnnotatedString`, is introduced that allows for
15-
regional annotations to be attached to an underlying string. This type is
16-
particularly useful for holding styling information, and is used extensively
17-
in the new `StyledStrings` standard library. There is also a new `AnnotatedChar`
18-
type, that is the equivalent new `AbstractChar` type.
14+
* Three new types around the idea of text with "annotations" (`Pair{Symbol, Any}`
15+
entries, e.g. `:lang => "en"` or `:face => :magenta`). These annotations
16+
are preserved across operations (e.g. string concatenation with `*`) when
17+
possible.
18+
* `AnnotatedString` is a new `AbstractString` type. It wraps an underlying
19+
string and allows for annotations to be attached to regions of the string.
20+
This type is used extensively in the new `StyledStrings` standard library to
21+
hold styling information.
22+
* `AnnotatedChar` is a new `AbstractChar` type. It wraps another char and
23+
holds a list of annotations that apply to it.
24+
* `AnnotatedIOBuffer` is a new `IO` type that mimics an `IOBuffer`, but has
25+
specialised `read`/`write` methods for annotated content. This can be
26+
thought of both as a "string builder" of sorts and also as glue between
27+
annotated and unannotated content.
1928
* `Manifest.toml` files can now be renamed in the format `Manifest-v{major}.{minor}.toml`
2029
to be preferentially picked up by the given julia version. i.e. in the same folder,
2130
a `Manifest-v1.11.toml` would be used by v1.11 and `Manifest.toml` by every other julia

0 commit comments

Comments
 (0)