Descrizione
Level up your skills by taking advantage of Clojures powerful macro system. Macros make hard things possible and normal things easy. They can be tricky to use and this book will help you deftly navigate the terrain. Youll discover how to write straightforward code that avoids duplication and clarifies your intentions. Youll learn how and why to write macros. Youll learn to recognize situations when using a macro would and wouldnt be helpful. And youll use macros to remove unnecessary code and build new language features. 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 codeasdata 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 dont need to wait on the Clojure language itself to add new features youll learn how to implement even the lowestlevel features as macros. Youll 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 theyre 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 youll be thinking like a macro professional. What You Need The book examples have been developed under Clojure 1.6.0 although earlier and later versions of Clojure may work as well. Youll want to use Leiningen 2.x in order to follow along with the examples that use external projects.
-
ID Fruugo:
8287988-17596073
-
ISBN:
9781941222225
Consegne e Resi
Spedito entro 24 ore
Spedizione da Regno Unito.
Facciamo del nostro meglio per assicurare che i prodotti che ordini vengano consegnati integralmente e secondo le tue indicazioni. Tuttavia, nel caso dovessi ricevere un ordine incompleto, oppure articoli differenti rispetto a quelli che hai ordinato, o se c'è qualche altro motivo per il quale non sei soddisfatto dell'ordine, puoi effettuare il reso dell'ordine, o qualsiasi prodotto incluso nell'ordine e ricevere un rimborso completo per gli articoli. Visualizza la politica di reso completa