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.
**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.
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.I think I’d need to fix some tests before you can merge this, but before I do that, please let me know if you agree with the change.
Closed by
05fad9ba54
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.