guard
- noun
- /ɡɑrd/
- Specialized
- 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
Idioms
Compounds
A person who watches and protects a building or people to stop stealing and trouble
- Formal
A military group in each United States state that governors or federal leaders call in emergencies
A special military unit that protected the Iraqi government in Baghdad under Saddam Hussein
A dog trained to protect people or property by warning and sometimes attacking intruders
A branch of the United States military that enforces laws at sea, rescues people, and protects its waters
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
A young person who supports Mao Zedong and takes part in political activity during China's Cultural Revolution
- Formal
A branch of the US government that protects people at sea, rescues boats and crews, and stops illegal activity
- Formal
A part of the United States government that patrols coasts, enforces laws at sea, and rescues people
- US
A set of metal bars attached to the front of a football helmet that protects the player's face
- Formal
A group of people who stand in line to welcome an important person or honor a dead person
- Formal
US Department of Defense office that manages the Army and Air National Guard
A guard who stands near the king or queen during ceremonies while wearing a Tudor uniform
- Specialized
Long outer parts of an animal's coat that protect the soft fur underneath
- Literature
A small loyal group of advisers and supporters who protect a leader and influence decisions
- US
A curved cover above a bike or motorcycle wheel that stops mud and water splashing on the rider
- US
A curved shield above a bicycle or motorcycle wheel that keeps mud and water off the rider
Surface Forms
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.