Skip to content

Commit a5e3e40

Browse files
committed
📝 Update changelog
1 parent e22e6ac commit a5e3e40

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
@@ -45,6 +45,25 @@
4545
than stopping at the syntax error.
4646
([mxtthias](https://github.com/mxtthias))
4747

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

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

0 commit comments

Comments
 (0)