One of the best ways to up your cljs game is to read other people’s code. When I first got started reading/writing cljs, I was confused when I saw
First of all,
#js when doing JS interop. For example, Om provides a cljs wrapper of React, and you can see
One thing to note is that the literal only applies at the top level (i.e. won’t deeply apply to nested structures):
cljs actually includes four built-in literals:
Now, when you see a reader literal, you’ll understand exactly what you’re looking at. If you’re interested in the implementation details, check out the source.