diff options
-rw-r--r-- | analytics.md | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/analytics.md b/analytics.md deleted file mode 100644 index 0dccc29c1..000000000 --- a/analytics.md +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | # file name change | ||
2 | |||
3 | change module system and `use` clauses. | ||
4 | |||
5 | This means we would not change all possiable places for now.(I think this is hard to implement even in future.) | ||
6 | |||
7 | ## module system | ||
8 | |||
9 | ### physical module and logic module | ||
10 | |||
11 | each file and folder(lib.rs in the folder) is a physical module. | ||
12 | |||
13 | `use` and `pub` could import and export module as logic. | ||
14 | |||
15 | logic module could be seen as `namespace`. | ||
16 | |||
17 | Only logic module matters. | ||
18 | |||
19 | ### module tree | ||
20 | |||
21 | only update the module which is included in the main branch. | ||
22 | |||
23 | ### module declaration | ||
24 | |||
25 | > logic module could be defined in its ancestor's folder. | ||
26 | |||
27 | > module | ||
28 | |||
29 | ## use clauses | ||
30 | |||
31 | ## NOTE | ||
32 | |||
33 | 1. path attribute | ||
34 | if some module is declared by `#[path = "filePath"]`, only update the `filePath`. | ||
35 | |||
36 | 2. not update `mod.rs` change, like to `mod1.rs` | ||
37 | |||
38 | 3. for folder name change(not add more subfolders), equal to change its `mod.rs`. | ||
39 | |||
40 | 4. However, mod could be declared through `mod XX {}` in its ancestor file. | ||
41 | |||
42 | 5. Key: How to update? Through semantic tree, or plain text? I worry the former one is not that clever. | ||