Advertisement

Data in Clojure

  • Luke VanderHart
  • Stuart Sierra

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.

Keywords

Regular Expression Single Argument Numeric Argument String Function Curly Brace 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Luke VanderHart and Stuart Sierra 2010

Authors and Affiliations

  • Luke VanderHart
  • Stuart Sierra

There are no affiliations available

Personalised recommendations