App logo

discard

/ˈdɪskɑːd/noun

A placeholder variable that accepts a value you do not need and cannot be read again afterward.

Example sentence

  • Assign the unused return value to a discard so the compiler stops warning you.

The programming sense here is niche; in general use you discard what you throw away, and in card games a discard is the card given up.

Related words