O'Reilly logo

Learning ClojureScript by Allen Rohner, Rafik Naccache, W. David Jarvis

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

Runtime data validation using schema

Like JavaScript, ClojureScript is dynamic; no type declarations are required, and attempting to provide them doesn't really give much meaningful support since ClojureScript's close relationship with the Google Closure compiler ensures your applications will already be fairly optimized when such type-related optimizations are available.

However, there are reasons you might want to have type checking as part of your program that aren't performance oriented. For instance, you might want to do input validation, or you might need to ensure that your functions are correctly passing the right data to each other in a test environment. For essentially all scenarios in which you might want to do runtime data validation, ...

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