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 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
You can’t perform that action at this time.
0 commit comments