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

+1 vote
in ClojureScript by

In ClojureScript 1. } yields {{["" "a" "b" "c"]}} while in Clojure it yields {{["a" "b" "c"]}}

It might be the case that this was done in https://github.com/clojure/clojurescript/commit/bf22dcca2e858811c8553ca9037e34a05b642121 to specifically match the behavior of an older version of Java (See CLJ-1312).

Given that Clojure / Java now produces a different behavior, if the only rationale for this was to make it match Clojure, then perhaps ClojureScript should also change? (If nothing else, for alignment with Clojure).

(I have no good answer regarding the fact that this would be a breaking change, but logging a ticket here for discussion regardless.)

2 Answers

0 votes
by

Comment made by: dnolen

I think this one is probably ok.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3007 (reported by mfikes)
...