tags:

views:

96

answers:

3

Exact duplicate of

I have a function which checks if a certain thing exists, and if not, creates it. What would be a good word for it? Right now I'm using "maintain", so the function is called maintain_buffer_on_path, but I think that "maintain" is misleading. Can you think of a better one-word name?

+10  A: 

I usually use ensure for this.

pgb
+4  A: 

EnsureExists (or simpler Ensure) seems to be some kind of a convention.

Konrad Rudolph
A: 

I've heard the word vivify to refer to this.

Tim