File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments