gotcha n.
A misfeature of a system, especially a
programming language or environment, that tends to breed bugs or
mistakes because it both enticingly easy to invoke and completely
unexpected and/or unreasonable in its outcome. For example, a
classic gotcha in C is the fact that if (a=b) {code;}
is syntactically valid and sometimes even correct. It puts the
value of b into a and then executes code if
a is non-zero. What the programmer probably meant was
if (a==b) {code;}, which executes code if a
and b are equal.
A misfeature of a system, especially a
programming language or environment, that tends to breed bugs or
mistakes because it both enticingly easy to invoke and completely
unexpected and/or unreasonable in its outcome. For example, a
classic gotcha in C is the fact that if (a=b) {code;}
is syntactically valid and sometimes even correct. It puts the
value of b into a and then executes code if
a is non-zero. What the programmer probably meant was
if (a==b) {code;}, which executes code if a
and b are equal.
Related:
- gotcha: n. A {misfeature} of a system, especially a programming
language or environment
that tends to breed bugs or mistakes because it... - BASIC /bay'-sic/ n.
A programming language,
originally designed for Dartmouth's experimental timesharing system
in the early 1960s
which for many years was the leading cause of brain... - TECO /tee'koh/ n.,v. obs.
1. [originally an acronym for
`[paper] Tape Editor and COrrector'
later, `Text Editor and COrrector'] n. A text editor... - Theorem: All positive integers are equal.
Proof: Sufficient to show that for any two positive integers
A and B, A = B. Further, it is sufficient to show... - geek code n.
(also "Code of the Geeks"). A set of
codes commonly used in sig blocks to broadcast the interests
skills, and aspirations of the poster. Features a... - dead code: n. Routines that can never be accessed because all
calls to them have been removed
or code that cannot be reached because it is guarded... - LISP n.
[from `LISt Processing language', but mythically
from `Lots of Irritating Superfluous Parentheses'] AI's mother
tongue
a language based on the ideas of (a) variable-length... - BASIC: [acronym, from Beginner's All-purpose Symbolic Instruction
Code] n
A programming language, originally designed for ... - feature n.
1. [common] A good property or behavior (as
of a program)
Whether it was intended or not is immaterial. 2...
