O'Reilly logo

Clojure for Domain-specific Languages by Kelker Ryan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Flow Control, Error Handling, and Math

This chapter starts by explaining and displaying examples of common flow control methods. Similar to the for loop flow control structures in imperative languages, Clojure has many flow control structures that bind locally scoped variables but don't actually loop (if-let, when-let, and so on).

Object comparison and casting are covered once you complete the Flow control section. Purposely so; the Object comparison section doesn't cover numerical comparisons. Numerical comparisons are in the Arithmetic section, so don't panic if you don't know how to compare numbers by the end of the Object comparison section.

Error handling will be easy for you to pick up if you're coming from a Java language background. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required