3 ms·
When we talk about duplication we are usually talking about doing some work twice or defining something twice. Using a name twice is not the type of duplication
by solipsism 8y ago
When we talk about duplication we are usually talking about doing some work twice or defining something twice. Using a name twice is not the type of duplication we try to avoid.
- gugagore 8y agoI don't think you can simply assert that. People sometimes do try to avoid naming something twice, especially if it has an unwieldy name. For example, to cube a quantity, I don't like to write "xxx". Imagine if x had another name, like "player_position.x". Sometimes people try to avoid naming something even once! Such as in an anonymous function.