Code Monkey home page Code Monkey logo

tlborm's Introduction

Rust 宏小册

注意:这是对 Daniel Keep 撰写的书 的续写, 自 2016 年初夏以来,那本书就没再更新。

本书的续写者为 Veykril, 使用 mdBook 工具生成。 你可以浏览本书的 英文版本, 和 github 仓库1

这本书尝试提炼出 Rust 社区对 Rust 宏的共识,准确地说,是 通过例子 来讲述宏。 因此,欢迎 PR 补充和提 issue。

在我学习 Rust 的时候,Little Book of Rust Macros 原作 通过例子 的方式非常给力地帮助过我理解(声明)宏。 很遗憾的是,Rust 语言与宏系统持续改进时,原作者不再更新书籍。 这也是我想重新继续这本书的原因,让书与当前的 Rust 同步, 以帮助新的 Rust 学习者理解(声明)宏——这个让很多人困惑的部分。

这本书认为你应该对 Rust 有基本的了解,它不会解释 Rust 语言特性或者与宏有关的结构。 如果你之前对宏没有了解,那么你必须至少阅读和理解了 Rust Book 的前七章——建议阅读完那本书大部分内容。

致谢

感谢 Daniel Keep 最初写下这本书。

感谢对原书提出建议和更正的读者: IcyFoxy、 Rym、 TheMicroWorm、 Yurume、 akavel、 cmr、 eddyb、 ogham 和 snake_case。

感谢 DaseinPhaos 对原作的翻译。 也感谢 Jorel Ali 给 mdbook 提供的 页面 TOC 小功能。

版权声明

这本书沿袭了原作的版权声明,因此具有 CC BY-SA 4.0MIT license 的双重许可。

Footnotes

  1. 译者注:我对原作和续作进行了梳理,见 翻译说明

tlborm's People

Contributors

bestgopher avatar chirsz-ever avatar cupnfish avatar douchuan avatar duongdominhchau avatar jyn514 avatar martinthomson avatar peter-kehl avatar sigmasd avatar tranzystorekk avatar veykril avatar zjp-cn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.