Null Island
en.wikipedia.org
en.wikipedia.org
https://www.ndbc.noaa.gov/station_page.php?station=13010
The mooring itself allows for some sway due to current.
> Moored buoys are connected with the ocean bottom using either chains, nylon, or buoyant polypropylene.
My knowledge is rusty, but, IIRC, for a shallow water mooring buoy you assume a radius of about half the water's depth. I'm not sure if there's a similar rule of thumb for deep water buoys.
I’m not saying that’s definitely how it’s done, but it’s how I’d think to do it with nothing other than my naïve geometric education.
With the actual depth, 4.94km, not 5km, 5.1 km would give distance = sqrt(5.1^2 + 4.94^2) ≈ 1.267km.
You can pick your own semantics for them but I think 'undefined' more or less means "not known" while null means "known not to exist".
"NULL is a void *, nil is an id, and Nil is a Class pointer"
...and apparently there is also NSNull.
The other three are quite common.
Edit: this is a serious question.
This is obviously at least five times as good as just having one option for null.
What is an array that is not empty but contains zero elements?
Here's an example:
' x can be anything, including an array, but
' defaults to the value Empty.
Dim x
' y is an array of values that can be anything,
' which defaults to an empty array.
Dim y()
' Initialize x as an empty array
x = Array()
' The following two statements print 0 and -1.
Debug.Print LBound(x)
Debug.Print UBound(x)
' The following two statements error with
' "Subscript out of range" even though y
' is also a kind of empty array.
Debug.Print LBound(y)
Debug.Print UBound(y)#define NULL 0 //C++
#define NULL ((void*)0) //C
I think later versions of C++ do something...different, but I’m not up to date enough to know without looking it up.
Also I think I vaguely remember from discussions about the standards, that a NULL pointer is not guaranteed to be numerically equal to zero in a standards compliant compiler.
But yeah, I was thinking of database NULLs.
edit: Also, null is not an empty string. The null character that terminates a string is unrelated to null pointers.
Null is the absence of a value. When used in a programming context it is either a pointer (which is not an integer or a float -- it's the pointer to the absence of an integer or a float. It is not equivalent to 0 or 0.0 or ""), a magic number (specifically for chars), or a special structure with a flag.
This more correctly would be "Default=0 Island". A database that doesn't have a nullable field would be the one where you'd have 0.0 as the defaults.
Pun.
Remember, a pointer contains the actual address in RAM, or 0 when the pointer is null.
It's better to think about NULL as a value plus a type. The value "False" may be 0 with a boolean type, just as NULL may be 0 with a pointer type.
In digital logic, there is no such thing as an "absence of a value". Everything must be represented as bits one way or another. Computers can certainly represent higher level concepts like an "absence of value", but at the lowest levels, they must be represented by some bit-stream. Types are generally the way that higher level concepts can be translated from low-level bitstreams.