Skip to content

Commit ae6e9ab

Browse files
committed
[type modifiers] Collapse a couple of paragraphs.
1 parent 332eabc commit ae6e9ab

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

working/type-modifiers/feature-specification.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,16 @@ solely to be extended: an [abstract base class][].
183183
[abstract base class]: https://en.wikipedia.org/wiki/Class_(computer_programming)#Abstract_and_concrete
184184

185185
If the class isn't abstract and can be both constructed and extended, you might
186-
think of it as a "base class".
187-
188-
Given that, I suggest we use `base` to mean "no interface". In other words, this
189-
class defines a *base* that all subtypes of this class (if there are any) must
190-
inherit from.
191-
192-
It's short. I think it reads very naturally in `abstract base class` and
193-
`base class`. It works OK in `base mixin` to define a mixin with no implicit
194-
interface.
195-
196-
If you want a class that can't be implemented *or* extended (in other words, a
197-
fully "final" or "sealed" leaf class), it would be a `closed base class`. I
198-
admit that reads a little like an oxymoron. It's not *great*, but maybe that's
199-
acceptable?
186+
think of it as a "base class". Given that, I suggest we use `base` to mean "no
187+
interface". In other words, this class defines a *base* that all subtypes of
188+
this class (if there are any) must inherit from.
189+
190+
It's short. I think it reads very naturally in `abstract base class` and `base
191+
class`. It works OK in `base mixin` to define a mixin with no implicit
192+
interface. If you want a class that can't be implemented *or* extended (in other
193+
words, a fully "final" or "sealed" leaf class), it would be a `closed base
194+
class`. I admit that reads a little like an oxymoron. It's not *great*, but
195+
maybe that's acceptable?
200196

201197
## Exhaustiveness checking
202198

0 commit comments

Comments
 (0)