< 返回版块

苦瓜小仔 发表于 2022-04-16 19:32

现在的 Rust 宏小册 是我翻译的。

如果没人看的话,我就不跟进翻译了 :)

距离上一次翻译此书,隔了快一年,从 2016 原版更新了一版。

现在新版的英文稿调整了结构,又丰富了一些细节,还加了过程宏内容。

如果没什么人看中文版的话,那我可能不会跟进了。毕竟宏的话题还是很少人关注(虽然它不难)。

如果要跟进翻译,至少要解决以下文件:

Changes to be committed:
        modified:   README.md
        modified:   book.toml
        deleted:    src/building-blocks/abacus-counting.md
        deleted:    src/building-blocks/ast-coercion.md
        deleted:    src/building-blocks/counting.md
        deleted:    src/building-blocks/parsing.md
        new file:   src/decl-macros.md
        new file:   src/decl-macros/building-blocks.md
        new file:   src/decl-macros/macros-methodical.md
        new file:   src/decl-macros/macros2.md
        new file:   src/decl-macros/minutiae.md
        new file:   src/decl-macros/minutiae/debugging.md
        new file:   src/decl-macros/minutiae/fragment-specifiers.md
        new file:   src/decl-macros/minutiae/hygiene.md
        new file:   src/decl-macros/minutiae/metavar-expr.md
        renamed:    src/patterns.md -> src/decl-macros/patterns.md
        new file:   src/decl-macros/patterns/internal-rules.md
        new file:   src/decl-macros/patterns/push-down-acc.md
        new file:   src/decl-macros/patterns/tt-muncher.md
        new file:   src/glossary.md
        modified:   src/introduction.md
        deleted:    src/macros-practical-table.html
        deleted:    src/macros-practical.md
        deleted:    src/macros/minutiae/identifiers.md
        deleted:    src/macros/minutiae/import-export.md
        deleted:    src/macros/minutiae/metavar-and-expansion.md
        deleted:    src/macros/minutiae/scoping.md
        deleted:    src/macros/syntax/source-analysys.md
        deleted:    src/patterns/callbacks.md
        deleted:    src/patterns/repetition-replacement.md
        deleted:    src/patterns/tt-bundling.md
        new file:   src/proc-macros.md
        new file:   src/proc-macros/hygiene.md
        new file:   src/proc-macros/methodical.md
        new file:   src/proc-macros/methodical/attr.md
        new file:   src/proc-macros/methodical/derive.md
        new file:   src/proc-macros/methodical/function-like.md
        new file:   src/proc-macros/practical.md
        new file:   src/proc-macros/practical/attr.md
        new file:   src/proc-macros/practical/derive.md
        new file:   src/proc-macros/practical/function-like.md
        new file:   src/proc-macros/third-party-crates.md
        new file:   src/syntax-extensions.md
        new file:   src/syntax-extensions/ast.md
        new file:   src/syntax-extensions/debugging.md
        new file:   src/syntax-extensions/expansion.md
        new file:   src/syntax-extensions/hygiene.md
        modified:   theme/rust-syntax-bg-highlight.css

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
        both modified:   src/SUMMARY.md
        deleted by them: src/building-blocks.md
        both modified:   src/decl-macros/building-blocks/abacus-counting.md
        both modified:   src/decl-macros/building-blocks/ast-coercion.md
        both modified:   src/decl-macros/building-blocks/counting.md
        both modified:   src/decl-macros/building-blocks/parsing.md
        both modified:   src/decl-macros/macros-practical-table.html
        both modified:   src/decl-macros/macros-practical.md
        both modified:   src/decl-macros/minutiae/identifiers.md
        both modified:   src/decl-macros/minutiae/import-export.md
        both modified:   src/decl-macros/minutiae/metavar-and-expansion.md
        both modified:   src/decl-macros/minutiae/scoping.md
        both modified:   src/decl-macros/patterns/callbacks.md
        both modified:   src/decl-macros/patterns/repetition-replacement.md
        both modified:   src/decl-macros/patterns/tt-bundling.md
        deleted by them: src/macros.md
        deleted by them: src/macros/macro_rules.md
        deleted by them: src/macros/minutiae.md
        deleted by them: src/macros/minutiae/debugging.md
        deleted by them: src/macros/minutiae/fragment-specifiers.md
        deleted by them: src/macros/minutiae/hygiene.md
        deleted by them: src/macros/syntax.md
        deleted by them: src/macros/syntax/ast.md
        deleted by them: src/macros/syntax/expansion.md
        deleted by them: src/patterns/internal-rules.md
        deleted by them: src/patterns/push-down-acc.md
        deleted by them: src/patterns/tt-muncher.md
        both modified:   src/syntax-extensions/source-analysis.md

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   .gitignore
        modified:   src/decl-macros.md
        modified:   src/decl-macros/macros-methodical.md
        modified:   src/decl-macros/macros2.md
        modified:   src/decl-macros/minutiae.md
        modified:   src/syntax-extensions/ast.md
        modified:   src/syntax-extensions/hygiene.md
        modified:   theme/css/variables.css
        modified:   theme/index.hbs

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        src/building-blocks/
        src/macros-practical.md
        src/macros/minutiae/identifiers.md
        src/macros/minutiae/import-export.md
        src/macros/minutiae/metavar-and-expansion.md
        src/macros/minutiae/scoping.md
        src/macros/syntax/source-analysys.md
        src/patterns.md
        src/patterns/callbacks.md
        src/patterns/repetition-replacement.md
        src/patterns/tt-bundling.md

评论区

写评论
SuperBigSaltedFish 2022-04-22 08:56

我该怎么回报你?

余烬剑心 2022-04-19 10:28

感谢大佬的辛苦付出!!!

Mercury 2022-04-18 16:02

在看的,非常有帮助,多谢大佬

gmg137 2022-04-18 08:50

有看,非常感谢!

RedPanda 2022-04-18 07:53

有的有的。

樂見 2022-04-17 16:00

在看啊!翻译挺好的,谢谢! 只要是在做着为人类文明进步的事业,就不愁会没有回报的。

liangyongrui 2022-04-17 13:41

看的,感谢翻译~

Shieber 2022-04-17 07:59

在看。

yangweng 2022-04-16 21:03

看啊。这么经典的书为啥没人看呢

1 共 9 条评论, 1 页