Js is indeed painful. I find the right approach is to simply treat it as a compile target. I’ve worked with ClojureScript when I had to do front end work, and I find it’s a huge improvement because it has sane language semantics. You have things like proper equality, comparison by value, immutable data structures, and so on. It’s not perfect because you still have to deal with stuff like source maps to get errors out of minified bundles, and you have to interop when you deal with Js libraries, but it’s a huge improvement overall I’ve found.
Js is indeed painful. I find the right approach is to simply treat it as a compile target. I’ve worked with ClojureScript when I had to do front end work, and I find it’s a huge improvement because it has sane language semantics. You have things like proper equality, comparison by value, immutable data structures, and so on. It’s not perfect because you still have to deal with stuff like source maps to get errors out of minified bundles, and you have to interop when you deal with Js libraries, but it’s a huge improvement overall I’ve found.