Update 'Blind Type Definitions'

Sasha Koshka 2022-08-24 05:49:27 +00:00
parent 6fb22be4d7
commit b4fe8e2ce9
1 changed files with 9 additions and 0 deletions

@ -0,0 +1,9 @@
```
type ro Pixel U32
```
"Blind" type definitions are called that because they cannot do fancy things
like define new members on the type they inherit, but they can inherit from
primitive types, pointers, and arrays. This can be useful for adding extra
semantics to code, and for defining methods on things that don't need to be a
whole object.