Abstract
Clojure is a dynamically typed language, which means that you never need to explicitly define the data type of symbols, functions, or arguments in your programs. However, all values still have a type. Strings are strings, numbers are numbers, lists are lists, etc. If you try to perform an unsupported operation on a type, it will cause an error at runtime. It is the programmer’s responsibility to write code in such a way that this does not happen. This should be very natural to those with a dynamic language background, while it will no doubt take some getting used to for those who have only used static languages in the past.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2010 Luke VanderHart and Stuart Sierra
About this chapter
Cite this chapter
VanderHart, L., Sierra, S. (2010). Data in Clojure. In: Andres, C., et al. Practical Clojure. Apress. https://doi.org/10.1007/978-1-4302-7230-4_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-7230-4_4
Publisher Name: Apress
Print ISBN: 978-1-4302-7231-1
Online ISBN: 978-1-4302-7230-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books