Skip to main content
literal

literal

1 6.7
A fixed value written in a program, like a number or text
  • noun
  • /ˈlɪtərəl/
  • Specialized
translation icon : literal
  • In programming, a literal is a value that is written directly in the code, like the number 42.

Examples

  • Alternately, you can declare a kind of object using the all-purpose instantiator var, which may use literals to define internal structures.

    Blog text (30)
  • And there are some rules that you can see for evaluating simple literals or conditionals.

  • Also we take dummy literal, let's call it Z.

  • The building blocks for programs are atoms, literals, and rules.

    Academic text (2011)
  • So if you have an OR of two literals, that's something like X or Y.

  • A literal may be the object of an RDF statement, but not the subject or the predicate.

    Blog text (1)
  • Bytes which cannot be included in matches are encoded as literals with a flag bit.

    Academic text (1998)
  • To complicate matters more, the order of rules in a Prolog program and of subgoals (literals) in rule bodies matters.

    Academic text (2011)
  • LZ1 algorithms encode their compressed output as a mixture of what are called LITERALS and COPY POINTERS.

    Academic text (1998)
  • Atoms are elementary propositions (factual statements) that may be true or false; literals are atoms a and their negations not a.

    Academic text (2011)

Compounds

People understand words in their exact meaning without hidden or deeper ideas

literal error
  • Jargon
3.7

A mistake in printed text that happens during printing or typing

How General

regex
  • Specialized
5.7
wildcard
  • Specialized
1 4.6
placeholder
  • Specialized
1 7.0
literal
  • Specialized
1 6.7

Surface Forms

literal singular
literals plural

Etymology

Literal comes from the Latin littera, meaning 'letter', which suggests something 'written exactly'. That's why in computer code a literal is a value written directly in the program and does not change.