Everything2
Near Matches
Ignore Exact
Full Text
Everything2

null

"null" is also a: user

created by pi

(idea) by TardisX (5.5 y) (print)   ?   I like it! Sat Nov 13 1999 at 8:46:33

A vitally important part of nearly any programming language. While computer programs normally think in terms of particular values, sometimes you need to express the lack of a value.

This sort of effect can be kludged via magic numbers like -1 or other arbitary values, but it's better if your language of choice does it internally, eliminating any possible ambiguity.

Some languages such as Perl give it different names, like undef. Semantically this suits better in a situation where you want to express the lack of a value, while null in a C context generally indicates a meaningless value.


(thing) by s_alanet (2.4 y) (print)   ?   I like it! Fri Mar 31 2000 at 6:05:53

NULL is nothing. It is useful because of this. Programmers swear by it (and at it, as far as that goes).
Null is a macro equal to 0. It is guaranteed to be unequal to any pointer or value (unless that value is also equal to NULL).

See also: pointers, code, and C.


(idea) by Muerte (7.9 y) (print)   ?   I like it! Thu Apr 20 2000 at 18:30:39

In a SQL database: a record that contains no value at all, not even an empty string.

(idea) by mricicle (8 mon) (print)   ?   I like it! Thu Mar 29 2001 at 17:38:19

In a (relational) database, NULL indicates that a field does not have a value.

Usual arithmetic rules do not apply to NULL values:

  • Almost all calculations involving NULL values gives NULL as result, for example 5 + NULL has the result NULL. String concatenation does not always work this way, for example the Oracle operator for concatenating strings, ||, treats NULL as an empty string.
  • No value is equal to NULL, not even NULL itself! Therefore there is a special <value> IS NULL operator that is used to test for NULL values.

Note: On some database servers, for example Oracle 8, an empty string is equal to null, but on others, for example Microsoft SQL Server, an empty string is not equal to null (but that is configurable, IIRC).


(idea) by bluscorpio87 (3 y) (print)   ?   I like it! Mon Jan 12 2004 at 16:57:27

When you play spades, null is when you can't get any books. At the end of that round, if you didn't get any books you are rewarded 100 points. If you do get books then 100 points are taken away from your score. Going null is a great way to come back in a spades game.

(definition) by Webster 1913 (print) I like it! Wed Dec 22 1999 at 1:30:16

Null (?), a. [L. nullus not any, none; ne not + ullus any, a dim. of unus one; cf. F. nul. See No, and One, and cf. None.]

Of no legal or binding force or validity; of no efficacy; invalid; void; nugatory; useless.

Faultily faultless, icily regular, splendidly null, Dead perfection; no more. Tennyson.

 

© Webster 1913.


Null, n.

1.

Something that has no force or meaning.

2.

That which has no value; a cipher; zero.

Bacon.

Null method Physics., a zero method. See under Zero.

 

© Webster 1913.


Null, v. t. [From null, a., or perh. abbrev. from annul.]

To annul.

[Obs.]

Milton.

 

© Webster 1913.


Null, n. [Etymol. uncertain.]

One of the beads in nulled work.

 

© Webster 1913.


printable version
chaos

nil Divide-by-zero joke Tao How I used Napster to ruin the life of the most popular kid in high school
NULL is 0 Why don't men shave? void &Oslash;
Programming When having sex in Binary Perl is such a jealous lover Null pointer
NULL terminator Spades C++: What's this? A reference? Tarot cards
They're only words English transformations Good things accomplished by George W. Bush during his presidency null cipher
Random Binary Search Tree '() insert SQL
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your grandpa would have liked:
The Wind in the Willows
Diaspora
Things I had not seen before coming to America
January 4, 2005
Why would he want a writer when he could have a dancer?
The Gunfighters
I had forgotten the bear's name, and could not find my way home to the Thousand Acre wood
Modern Mayan Slaughtercomb
Lord of the Wasteland
Humorous Writings of E2
Being a foreign female in Japan
It appears to be a sock castle of some kind
Interpretations of the lyrics to American Pie
New Writeups
jqwerty
The Anime Laws of Physics(person)
jjen
Sorrier than I ever thought I would be(personal)
locke baron
Moskva class antisubmarine cruiser(thing)
Wuukiee
May 15, 2008(idea)
locke baron
Kuznetsov class aircraft carrier(thing)
_lesra
for abby(thing)
Adaptive Child
Annie's garden salsa(recipe)
Simulacron3
Zig-Zag(thing)
Ouzo
Special Grilled Cheese(fiction)
Noung
Tiananmen Square Massacre(idea)
aneurin
Lord St Clair(person)
artman2003
Assholes and Douchebags: A Comparison(person)
locke baron
Tyan Thunder K8WE(thing)
locke baron
Udaloy class destroyer(thing)
Scaevola
Same-sex marriage(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company