Wikia

Psychology Wiki

Metasyntactic variable

Talk0
34,138pages on
this wiki
Revision as of 12:29, February 15, 2009 by Dr Joe Kiff (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Assessment | Biopsychology | Comparative | Cognitive | Developmental | Language | Individual differences | Personality | Philosophy | Social |
Methods | Statistics | Clinical | Educational | Industrial | Professional items | World psychology |

Cognitive Psychology: Attention · Decision making · Learning · Judgement · Memory · Motivation · Perception · Reasoning · Thinking  - Cognitive processes Cognition - Outline Index


A metasyntactic variable is either a placeholder name (a kind of alias term, commonly used to denote the subject matter under discussion), or a random member of a class of things under discussion. The term originates from computer programming.

The use of a metasyntactic variable is helpful in freeing a programmer from creating a logically named variable, although the invented term may also become sufficiently popular and enter the language as a neologism. The word foo is the canonical example.

The phenomenon is similar to the use in algebra of x, y and z for unknown variables, and a, b and c for unknown constants. "Widgets" are also used in business to indicate an as-yet-unspecified product and are frequently sold by the Acme company.

Metasyntactic variables are so called because:

  1. They are variables in the metalanguage used to talk about programs, etc.
  2. They are variables whose values are often variables (as in usages like "the value of f(foo, bar) is the sum of foo and bar").

ExamplesEdit

Nonsense wordsEdit

Foo, Bar, Baz, and BooEdit

Foo is the Canonical Metasyntactic Variable, commonly used to represent an as-yet-unspecified term, value, process, function, destination or event but seldom a person (see Ned Baker, below). It is sometimes combined with bar to make foobar. This suggests that foo may have originated with the World War II slang term fubar, as an acronym for fucked/fouled/"fixed" up beyond all recognition/repair, although the Jargon File makes a reasonably good case [1] that foo predates fubar.

See alsoEdit

External linksEdit


This page uses Creative Commons Licensed content from Wikipedia (view authors).

Around Wikia's network

Random Wiki