Join Arthur Ulfeldt for an in-depth discussion in this video Everything has a value, part of Learning Clojure.
- [Instructor] Next, a little bit more…on evaluation and values.…Everything, in Closure, has a value.…More to say, everything has a return value.…In many other languages, you go through,…and you do a bunch of work, and you function,…and then at the end, you say return the result.…Well, in Closure, everything is a return statement,…since everything returns a value…back to the form that called it.…It be like putting a return statement everywhere.…
Since there are no forms that don't return something,…there's really no reason to have a keyword…that you would just put everywhere,…so that's why Closure has no return keyword.…It's sort of not there because it's everywhere.…There's also no break.…You really have to return a value.…If you have an if statement,…and you don't know what to put for the else,…you have to think it through and come up with something,…because there is no way out without returning a value.…People often use the value nil, or null,…they are the same thing in that case.…
I've been talking a lot about evaluation.…
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?
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.