HomePhorge

(PUP-4082) Make unfold of undef produce nothing
739ce9ff0a76Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-4082) Make unfold of undef produce nothing

Before this commit, an unfold of undef would be treated like unfold of
any other value - i.e. wrapping it in an array, and then depending on
context unfold the result into that context.

It is more natural that an unfold of undef leads to nothing - i.e that
undef is turned into an empty array, that when unfolded in context adds
nothing.

Thus *undef and [] has the same result.
In options for case and selector expressions, if a *undef is used as an
option, that option will not match any value, not even undef or an empty
array.

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPU739ce9ff0a76: (PUP-4082) Make unfold of undef produce nothing (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Mar 4 2015, 8:50 PM