Welcome! Please see the About page for a little more info on how this works.

0 votes
in Syntax and reader by

Current behaviour:

user=> `(~@()) nil user=> `[~@()] []

Expected behaviour:

user=> `(~@()) () user=> `[~@()] []

4 Answers

0 votes
by

Comment made by: jafingerhut

Patch 0001-Fix-unquote-splicing-for-empty-seqs.patch dated Jun 11 2014 no longer applies cleanly to latest Clojure master due to some changes committed earlier today. I haven't checked whether this patch is straightforward to update.

0 votes
by

Comment made by: bronsa

Updated patch to apply to HEAD

0 votes
by

Comment made by: bronsa

This patch requires the patch at http://dev.clojure.org/jira/browse/CLJ-1586 to be applied first otherwise some compile-time metdata might get lost.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1444 (reported by bronsa)
...