Exploring DWARF objects interactively in Pharo:
miniblog.
Related Posts
TypeScript has a really neat way of changing the required-ness of fields in objects.
Partial<Foo> is the same shape as Foo, but all the fields are optional. Required<Foo> is the same shape as foo but all the fields are required.
LambdaMOO has prototypical inheritance, so you create objects from other objects.
@create $note named "Old Post-It"
You now have Old Post-It with object number #51116 and parent generic note (#9).
An object that can have children is called 'fertile'!
I've been writing programming language documentation for objects. It's surprisingly nuanced!
How do you introduce objects to the reader? What elements should the first example contain? What order do you introduce concepts like methods, inheritance and properties?