Skip to main content
guard

guard

1 7.4
A check at the start of code that stops the function if something is not true
  • noun
  • /ɡɑrd/
  • Specialized
: cláusula de guarda
  • A guard is essential in programming to ensure that conditions are met before executing critical code sections.

Examples

  • The timing tool cycle time target contains a guard band to account for manufacturing test margin and design uncertainties such as phase-locked loop (PLL) jitter and clock skew.

    Academic text (1999)
  • Especially, there are a lot of silly, type-related conversions and checks/guards that appear in the bytecode for type-annotated ActionScript code, even though you'd expect that they could be enforced statically.

    Blog text (22)
  • That is called an include guard, and it prevents the file from being included more than once.

    Blog text (13)
  • The guard sets controls on what other threads can invoke this gate by requiring the caller to own all categories in G.

    Academic text (2011)
  • The original System/360 architecture for HFP did not define a guard digit for long operands.

    Academic text (1999)
  • It is dependent on the guard-bit combinations of the intermediate result; in most cases, extra cycles to perform a remainder comparison are eliminated.

    Academic text (1999)
  • In programming, a guard checks if the value is valid before proceeding, preventing errors in the function.

  • Using a guard can simplify your code by handling exceptional cases at the start of a function.

Antonyms

∞ 1.0

To let something happen or let someone do something

∞ 1.0

Choose not to pay attention to someone or something

Idioms

69 4.2

Not ready or paying attention when something happens

Surprised and not ready for something that happens suddenly

45 3.5

Alert and ready to act if danger or problems appear

Ready and alert to notice danger or problems

Not ready and not paying attention when something surprises you

Alert and ready to deal with danger or problems

Not paying attention and not ready for surprise or danger

Not paying attention and not ready for danger or surprise

Ready and careful about possible danger or problems

Compounds

216 1.3

A person who watches and protects a building or people to stop stealing and trouble

193 3.7

A military group in each United States state that governors or federal leaders call in emergencies

33 2.5

A person who watches prisoners in a jail or prison

A special military unit that protected the Iraqi government in Baghdad under Saddam Hussein

25 2.1

A dog trained to protect people or property by warning and sometimes attacking intruders

20 7.0

A group of longtime members who resist new ideas

19 3.3

A period when someone watches and protects a place, often at night

A branch of the United States military that enforces laws at sea, rescues people, and protects its waters

15 4.8

A group of soldiers who stand or march at ceremonies to show respect

13 4.9

Not ready or alert when something surprises you

12 2.5

A person who helps children and others cross streets safely near schools

A group of part-time soldiers who help in local emergencies and serve abroad

A reserve force of civilian volunteers who support the United States Air Force in war and emergencies

8 5.9

A volunteer group of local people who protect their area when the army is away

A ceremony when uniformed guards change places and duties at a palace

6 5.0

A group of people who carry a national or military flag during ceremonies

5 9.2

A young person who supports Mao Zedong and takes part in political activity during China's Cultural Revolution

5 3.3

A part of the United States government that patrols coasts, enforces laws at sea, and rescues people

A branch of the US government that protects people at sea, rescues boats and crews, and stops illegal activity

3 1.7

A person who protects a bank and its customers

guard boat
  • Specialized
3 5.2

A boat that watches and protects a harbor or ships

A group of elite soldiers who guarded Roman emperors in ancient Rome

2 2.5

A hard pad worn over the front of the lower leg to protect the shin

guard ship
  • Specialized
1 7.9

A navy ship kept ready to respond quickly to emergencies

1 4.1

A group of people who stand in line to welcome an important person or honor a dead person

1 4.3

A set of metal bars over a gap in a road that stops cows from crossing

1 3.9

A set of metal bars attached to the front of a football helmet that protects the player's face

A guard who stands near the king or queen during ceremonies while wearing a Tudor uniform

1 5.5

US Department of Defense office that manages the Army and Air National Guard

1 2.5

A person who stands at an entrance to check people entering

guard hair
  • Specialized
1 7.7

Long outer parts of an animal's coat that protect the soft fur underneath

1 3.1

A padded sleeve that protects the arm during sports like football or hockey

Praetorian Guard
  • Literature
1 9.6

A small loyal group of advisers and supporters who protect a leader and influence decisions

1 4.1

A curved cover above a bike or motorcycle wheel that stops mud and water splashing on the rider

1 4.1

A bar attached to a car bumper that protects it from scratches and small hits

provost guard
  • Formal
1 9.7

A group of soldiers who keep order and discipline in the military

1 4.0

A curved shield above a bicycle or motorcycle wheel that keeps mud and water off the rider

watch guard
  • Archaic
1 6.7

A short chain or ribbon that clips a pocket watch to clothing

Surface Forms

guard singular
guards plural

Etymology

Guard comes from an old German word meaning 'to watch' or 'protect', and is related to ward and warden. In programming a guard is a quick check that 'protects' the rest of the code by stopping it if something is wrong.