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