Skip to content

Commit 425ea9c

Browse files
committed
📝 Update changelog
1 parent ce769b0 commit 425ea9c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@
5151
containing scientific notation or trailing zeros (i.e. `100` and `1e2`).
5252
([ptdewey](https://github.com/ptdewey))
5353

54+
- The [interference-based pruning](https://gleam.run/news/formalising-external-apis/#Improved-bit-array-exhaustiveness-checking)
55+
from 1.13 has been extended to integer segments!
56+
Aside from the various performance improvements, this allows the compiler to
57+
mark more branches as unreachable.
58+
```gleam
59+
case bits {
60+
<<"a">> -> 0
61+
<<97>> -> 1
62+
// ^- This branch is unreachable because it's equal to "a".
63+
64+
<<0b1:1, _:1>> -> 2
65+
<<0b11:2>> -> 3
66+
// ^- This branch is unreachable because the branch before it already covers it.
67+
68+
_ -> 99
69+
}
70+
```
71+
([fruno](https://github.com/fruno-bulax/))
72+
5473
### Build tool
5574

5675
- The help text displayed by `gleam dev --help`, `gleam test --help`, and

0 commit comments

Comments
 (0)