ClojureScript - 1.10.866 Release

submited by
Style Pass
2021-05-25 15:00:12

We’re happy to announce a new release of ClojureScript. If you’re an existing user of ClojureScript please read over the following release notes carefully.

ClojureScript generates efficient JavaScript for and / or, employing && / || when applied to Boolean values. Previously these optimizations were implemented directly by the and / or macros. With this release they are instead implemented during a compiler pass.

A consequence of moving these optimizations to the code generation phase is that the resulting simplified and / or macros are compatibile with code walking libraries like core.async.

This release allows macros that expand to require statements to be present in the code as is illustrated in the following example:

The IAssociative protocol defines -contains-key?, which facilitates directly testing whether a key is in an associative collection. The core contains? function has been revised with this release to make such a call for collections that implement the IAssociative protocol.

Leave a Comment