After a year building a rich-text editor in Chez Scheme, a developer with a Clojure background weighs the languages’ trade-offs. Chez’s list-centered syntax feels less convenient: it lacks literals for common data structures and anonymous functions, while its explicit binding forms add visual noise. More significantly, Chez offers fewer generic operations, so working across lists, vectors, and maps takes more specialized functions. That difference encourages record-based domain models rather than Clojure’s flexible data-processing pipelines. Chez’s macros were initially harder to learn, especially its general-purpose syntax-case system, but the author now finds them better suited to complex transformations. Pattern matching makes macro behavior easier to express, and local macros integrate naturally with the language.
Continuations proved less central to the editor than expected: their practical uses included cooperative threading and early returns. Chez conditions can use continuations to let handlers decide how computation resumes, a capability the author sees as especially useful to library authors. Interactive development was a disappointment because modules are immutable and hide private functions; the project instead relies largely on editing, testing, and rerunning. The limited library ecosystem is offset by Chez’s strong C interface, which enabled direct GTK integration. Overall, Chez supplies powerful, composable tools but requires substantial setup and sacrifices conveniences. Its compilation, speed, and small binary suit a desktop editor; for server software, the author would choose Clojure, and would consider Racket for a Scheme with more built-in conveniences.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.