Mastering Clojure Macros读书介绍
类别 | 页数 | 译者 | 网友评分 | 年代 | 出版社 |
---|---|---|---|---|---|
书籍 | 100页 | 2020 | The Pragmatic Bookshelf |
定价 | 出版日期 | 最近访问 | 访问指数 |
---|---|---|---|
USD 17.00 | 2020-02-20 … | 2020-05-26 … | 81 |
Clojure offers some sharp tools in its toolbox, and one of the sharpest is its macro system. This book will help you write macros using Clojure, and more importantly, recognize when you should be using macros in the first place.
The Lisp “code-as-data” philosophy gives tremendous advantages to macro authors and users. You can use macros to evaluate code in other contexts, move computations to compile time, and create beautiful API layers. You don’t need to wait on the Clojure language itself to add new features, you’ll learn how to implement even the lowest-level features as macros. You’ll step through representative samples of how to use macros in production libraries and applications, find clear details on how to construct macros, and learn pointers to avoid obstacles that often trip up macro amateurs.
Clojure macros are more straightforward to use than metaprogramming features in many other languages, but they’re different enough from normal programming to present challenges of their own. Mastering Clojure Macros examines some of these issues, along with alternatives to macros where they exist.
By the time you finish this book, you’ll be thinking like a macro professional.
作者简介Colin Jones is a software craftsman at 8th Light, where he builds web, mobile, and desktop systems for clients large and small. He’s an active participant in the Clojure open source community, including work on the Clojure Koans, REPLy, Leiningen, and small contributions to Clojure itself.
剧情呢,免费看分享剧情、挑选影视作品、精选好书简介分享。