Commit 14a6695
msglist [nfc]: Document narrow field; make setter private
Even if the reader is already sure that the field doesn't get mutated
from outside this file, giving it a different name from the getter is
useful for seeing exactly where it does get mutated: now one can look
at the references to `_narrow`, and see the mutation sites without
having them intermingled with all the sites that just read it.1 parent f3fb431 commit 14a6695
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
| 458 | + | |
458 | 459 | | |
459 | 460 | | |
460 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
461 | 467 | | |
462 | 468 | | |
463 | 469 | | |
| |||
601 | 607 | | |
602 | 608 | | |
603 | 609 | | |
604 | | - | |
| 610 | + | |
605 | 611 | | |
606 | | - | |
| 612 | + | |
607 | 613 | | |
608 | 614 | | |
609 | 615 | | |
| |||
786 | 792 | | |
787 | 793 | | |
788 | 794 | | |
789 | | - | |
| 795 | + | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| |||
0 commit comments