Ellipsis And Coalesce

no-email (Damien Seguy), Damien Seguy
Fri, 11 Apr 2025 00:00:00 +0000

Ellipsis, aka ``...`` three dots, applies only to arrays and Traversable objects. It also has a lower priority than the ``??`` coalesce operator, which means that ``??`` is applied before the ``...``.
This way, when the variable is undefined, it is still possible to unpack it, after having given a default value.