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 @@ -9411,8 +9411,11 @@ \subsection{Null}
9411
9411
Attempting to instantiate \code{Null} causes a compile-time error.
9412
9412
It is a compile-time error for a class to extend, mix in or implement
9413
9413
\code{Null}.
9414
- The \code{Null} class extends the \code{Object} class
9415
- and declares no methods except those also declared by \code{Object}.
9414
+ %% Deep weasel talk here: The clean model would be to have a sealed top class
9415
+ %% `Any`, with `Null` and `Object` as the immediate subtypes. The only
9416
+ %% special rule we would then need would be that `Any <: Object?`.
9417
+ The \code{Null} class implements the same member signatures
9418
+ as the \code{Object} class.
9416
9419
9417
9420
\commentary{%
9418
9421
The null object has primitive equality
You can’t perform that action at this time.
0 commit comments