Join Arthur Ulfeldt for an in-depth discussion in this video Macros, part of Learning Clojure.
- [Narrator] So earlier I mentioned that Clojure code…consists of lists of symbols.…This turns out to be an incredibly powerful feature…of the language because we can use all of Clojure's…functions to manipulate lists of symbols.…And if we can manipulate lists of symbols,…that means that we can run code, which changes code.…Macros are named for Clojure's…lightweight dynamic programming feature.…So macros are little bit more than…functions from code to code.…
They're a function that takes one list of code as its input,…or expression, and then it produces another list,…also known as an expression.…So we list with some symbols and values in it.…As the input to this function, it returns back another one.…That one that got returned back is the one that actually…gets run unless it happens to have also been a macro.…Then it as to go through the whole cycle again.…Let's take a look at what that looks like.…So, back to our familiar REPL slide.…We have the r for read, reads it into data structures.…
Then we take those data structures and we evaluate them.…
Arthur Ulfeldt covers the Leiningen build tool and setting up Clojure to work with the IntelliJ IDEA dev environment. He then reviews the basics of the syntax, including functions, expressions, values, macros, strings, and conditionals. He shows how to structure, compile, and deploy Clojure projects in Leiningen, and pull from Clojure's core library. In the final chapters, Arthur explores references and namespaces and points to resources to learn more about Clojure.
- Installing Leiningen
- Configuring IntelliJ IDEA
- Using REPLs to execute code
- Working with simple and composite values
- Mastering Clojure macros
- Exploring Clojure syntax
- Building a Clojure project with Leiningen
- Mapping, filtering, and reducing
- Binding and destructuring data
- Working with identities
Skill Level Intermediate
Java Essential Training for Studentswith Peggy Fisher3h 6m Intermediate
1. First Look at Clojure
2. Exploring the Syntax of Clojure
Conditionals and special forms10m 27s
3. Evaluating Forms
4. Clojure Projects and Leiningen
5. The Core Library
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.