File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9415,8 +9415,11 @@ \subsection{Null}
9415
9415
Attempting to instantiate \code{Null} causes a compile-time error.
9416
9416
It is a compile-time error for a class to extend, mix in or implement
9417
9417
\code{Null}.
9418
- The \code{Null} class extends the \code{Object} class
9419
- and declares no methods except those also declared by \code{Object}.
9418
+ %% Deep weasel talk here: The clean model would be to have a sealed top class
9419
+ %% `Any`, with `Null` and `Object` as the immediate subtypes. The only
9420
+ %% special rule we would then need would be that `Any <: Object?`.
9421
+ The \code{Null} class implements the same member signatures
9422
+ as the \code{Object} class.
9420
9423
9421
9424
\commentary{%
9422
9425
The null object has primitive equality
You can’t perform that action at this time.
0 commit comments