# [Vote] Auto-capture multi-line closures

- Thread: https://staging.externals.io/message/114683
- Original archive: https://news-web.php.net/php.internals/114683
- Started by Larry Garfield on 2021-05-31T20:45:27+00:00
- Messages: 2
- RFC: Short Closures 2.0 (Declined) — https://staging.externals.io/rfc/auto-capture-closure.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://staging.externals.io/search.md?q={query} · RFCs at https://staging.externals.io/rfc.md · JSON API at https://staging.externals.io/api · documentation at https://staging.externals.io/llms.txt

---

## #114683 — Larry Garfield — 2021-05-31T20:45:27+00:00

URL: https://staging.externals.io/message/114683#114683

Greetings, Internalians.  After a bit of a delay, I have opened the vote for auto-capturing multi-line closures.

https://wiki.php.net/rfc/auto-capture-closure

The vote closes Monday 14 June.

Prior discussion thread: https://externals.io/message/113740

-- 
  Larry Garfield
  larry@garfieldtech.com

---

## #114685 — Larry Garfield — 2021-06-01T20:16:31+00:00

URL: https://staging.externals.io/message/114683#114685 · In reply to: #114683

> Greetings, Internalians.  After a bit of a delay, I have opened the 
> vote for auto-capturing multi-line closures.
> 
> https://wiki.php.net/rfc/auto-capture-closure
> 
> The vote closes Monday 14 June.
> 
> Prior discussion thread: https://externals.io/message/113740

After some off-list discussion, we've decided to cancel this vote for now.  Reviewing the previous discussion we had agreed to dig into the question of how to capture fewer variables when possible, but haven't had the opportunity to do so yet.  In the interest of honesty we're going to stop the vote for now, and Nuno is going to try to do so before the end of June so that we can hopefully bring it back to a vote with an improved implementation, or at least a roadmap for how the implementation can be improved without behavioral changes.

Thank you to everyone that's voted so far; we'll be back as soon as possible for you to vote again.

--Larry Garfield
