English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The guarantees made by constructors and destructors offer a nice way to let the compiler clean up after you.

share|improve this question
up vote 2 down vote accepted

From the Macmillan dictionary:

clean up after someone: to clean a place after someone has made it dirty or messy

Residents have been told to clean up after their dogs.

Another example (closer to the one in your question), desctructor functions in some programming languages let you remove from memory the variables that are no longer needed by the computer program, i.e. to perform a clean up when the program no longer needs to use an object.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.