Skip to content

Commit e938929

Browse files
committed
Update README.md
1 parent 0c1345a commit e938929

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ The type analysis repots on variant cases, and record labels.
6060
- A record label `x` in `type r = {x:int, y:int}` is dead if it is never read (by direct access `r.x` or pattern matching `| {x:n, y:m} => ...`). However, creating a value `let r = {x:3, y:4}` does not make `x` and `y` live.
6161
Note that reading a value `r` does not make `r.x` or `r.y` live.
6262

63+
While dead values can be removed automatically (see below), dead types require a bit more work. A dead variant case requires changing the type definition, and the various accesses to it. A dead record label requires changing the type definition, and removing the label from any expressions that create a value of that type.
64+
6365
### DCE: controlling reports with Annotations
6466

6567
The dead code analysis supports 2 annotations:

0 commit comments

Comments
 (0)