# \[Accepted\] SE-0366: \`consume\` operator to end the lifetime of a variable binding

**URL:** <https://forums.swift.org/t/accepted-se-0366-consume-operator-to-end-the-lifetime-of-a-variable-binding/62758>\
**Category:** Announcements\
**Created:** [January 24, 2023, 12:10am UTC](https://forums.swift.org/t/accepted-se-0366-consume-operator-to-end-the-lifetime-of-a-variable-binding/62758 "2023-01-24T00:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hborla](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hborla/32/27563_2.png) [@hborla](https://forums.swift.org/u/hborla)\
**Post date:** [January 24, 2023, 12:10am UTC](https://forums.swift.org/t/accepted-se-0366-consume-operator-to-end-the-lifetime-of-a-variable-binding/62758/1 "2023-01-24T00:10:00Z")

</div>

The [second review](https://forums.swift.org/t/se-0366-second-review-take-operator-to-end-the-lifetime-of-a-variable-binding/61021) of [SE-0366: `consume` operator to end the lifetime of a variable binding](https://github.com/apple/swift-evolution/blob/main/proposals/0366-move-function.md) ended on November 8th, which was followed by a [joint naming revision](https://forums.swift.org/t/combined-se-0366-third-review-and-se-0377-second-review-rename-take-taking-to-consume-consuming/61904) of SE-0366/SE-0377 that ran from December 7th through December 14th. The Language Workgroup has decided to **accept** the proposal.

The second review of SE-0366 was generally positive, with minor constructive feedback on the restriction that a function cannot `consume` one of its parameters that is borrowed inside the function implementation. Reviewers argued that it’s still useful to `consume` such a parameter to ensure it isn’t used later in the function, and a warning would still prevent unexpected behavior. The Language Workgroup discussed this, and would like lifting the restriction to be motivated by real-world usage. The proposal is accepted with the restriction, and lifting the restriction can be revisited later after gaining practical experience with the `consume` operator.

The naming revision was also generally positive, and focused mostly on the parameter modifier name in SE-0377. The revision was motivated by the name `take` being used colloquially to describe general passing of arguments to parameters, e.g. a function takes an argument of type X. Feedback on `consume` for SE-0366 was positive, and the Language Workgroup decided to accept SE-0366 under the name `consume`.

Thank you to everyone who participated in the first pitch and proposal review! Your contributions help make Swift a better language.

Holly Borla  
Review Manager
