Can :or destructuring refer to previous sequential bindings?

Description

The following code works, but it is unspecified in the docs whether `(inc a)` can rely on `a` being bound.

In sequential destructuring, are bindings bound in order such that subsequent :or value expressions can rely on prior sequential bindings?

This is true based on the current implementation of destructure, but looking for a statement to this effect in the docs and/or tests.

Environment

None

Activity

Show:

Alex Miller December 20, 2019 at 12:28 PM

similar but different than

Details

Assignee

Reporter

Approval

Triaged

Priority

Affects versions

Created January 11, 2016 at 11:23 PM
Updated December 20, 2019 at 12:28 PM