Fix `when/splice' inconsistent return types #131

Closed
leafac wants to merge 1 commits from patch-1 into master

1 Commits (master)

Author SHA1 Message Date
Leandro Facchinetti c1152ba0a6 Fix `when/splice' inconsistent return types
**CURRENT BEHAVIOR**

The function `when/splice` returns either a list (when the condition is true), or a string (when the condition is false). This makes it unusable in contexts that expect lists—for example, `(... ,@◊when/splice[...]{...} ...)`.

**EXPECTED BEHAVIOR**

The return types of `when/splice` are consistent. When the condition is false, return an empty list.
8 years ago