What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Cons vs Null - What's the difference?

cons | null |

As nouns the difference between cons and null

is that cons is or cons can be (computing) a data structure in lisp that is a pair of pointers, car and cdr, used mainly for lists while null is zero, nil; the cardinal number before einn.

As a verb cons

is (computing) to obtain a list from a cons or a nesting of conses; to prepend an element to a list by forming a cons of that element and the list; to obtain a list from a smaller one by repeated application of such kind of prepending or cons can be (con).

cons

English

Etymology 1

Noun

(head)
  • Etymology 2

    Abbreviation of construct .

    Noun

    (conses)
  • (computing) A data structure in LISP that is a pair of pointers, car and cdr, used mainly for lists.
  • Synonyms
    * cons cell

    Verb

    (es)
  • (computing) To obtain a list from a cons or a nesting of conses; to prepend an element to a list by forming a cons of that element and the list; to obtain a list from a smaller one by repeated application of such kind of prepending.
  • In addition to specifying the whole list at once using square brackets and commas, you can build them up piece by piece using the (:) operator. This process is often referred to as consing.

    Etymology 3

    Verb

    (head)
  • (con)
  • ----

    null

    English

    Noun

    (en noun)
  • A non-existent or empty value or set of values.
  • Zero]] quantity of [[expression, expressions; nothing.
  • (Francis Bacon)
  • Something that has no force or meaning.
  • (computing) the ASCII or Unicode character (), represented by a zero value, that indicates no character and is sometimes used as a string terminator.
  • (computing) the attribute of an entity that has no valid value.
  • Since no date of birth was entered for the patient, his age is null .
  • One of the beads in nulled work.
  • (statistics) null hypothesis
  • Adjective

    (en adjective)
  • Having no validity, "null and void"
  • insignificant
  • * 1924 , Marcel Proust, Within a Budding Grove :
  • In proportion as we descend the social scale our snobbishness fastens on to mere nothings which are perhaps no more null than the distinctions observed by the aristocracy, but, being more obscure, more peculiar to the individual, take us more by surprise.
  • absent or non-existent
  • (mathematics) of the null set
  • (mathematics) of or comprising a value of precisely zero
  • (genetics, of a mutation) causing a complete loss of gene function, amorphic.
  • Derived terms

    * nullity

    Verb

    (en verb)
  • to nullify; to annul
  • (Milton)

    See also

    * nil ----