And Clojure is actually easier

After a few months writing Clojure I began writing Javascript again. As I was trying to write something ordinary, I had the following thoughts:

“Is this variable ImmutableJS or Javascript?”

“How do I map an object and get one back?”

“If it’s Immutable, use <this function> with <this syntax>, otherwise use <a different version of the same function> with <different syntax and totally different behavior>.”

“Can a React component’s state be an Immutable Map?”

“Is lodash imported?”

fromJS then <write code> then .toJS()?”

They seemed unnecessary. But I imagine I’ve thought them a million times before and didn’t notice because…

Alex Dixon

Clojure(Script) developer. Co-author

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store