Sentinel

  • A value that does not appear in the real data, but is used exclusively to indicate the end of data
  • Dummy data to be placed to reduce the number of condition judgments when there are multiple exit conditions for a loop processing input data.

guard - Wikipedia


This page is auto-translated from /nishio/番兵 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.