Get the latest tech news

Clj-coll: Clojure collections and sequences in Common Lisp


Clojure collection and sequence APIs in Common Lisp, with optional Clojure collection syntax - dtenny/clj-coll

TL;DR: Beware mixing mutable and immutable types, particularly hash-tables of either sort, and know that associative things with keys tend to use CL:EQUAL-ish semantics. While Common Lisp's equal and equalp will do certain flavors of structural equivalence between CL collections, they won't do anything for user packages like the immutable classes used by CLJ-COLL. TL;DR: quoted forms with embedded syntax won't have a chance to evaluate the result of the reader macro, leaving you an unexpected and unevaluated S-EXP where you expected a set/vector/hashtable.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Common Lisp

Common Lisp

Photo of sequences

sequences

Photo of Clojure collections

Clojure collections

Related news:

News photo

Benben: An audio player for the terminal, written in Common Lisp

News photo

Inspect ANSI control codes and escape sequences

News photo

Notes on Graham's ANSI Common Lisp (2024)