3 ms·
Isn't emacs the first to do it? I have the vague memory of it self-advertising as self-documenting.
by gostsamo 6y ago
Isn't emacs the first to do it? I have the vague memory of it self-advertising as self-documenting.
- eternalban 6y agoI don’t know about emacs but your comment prompted a search for Smalltalk-80 docs: http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook.pdf http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook.... On page 309 the `Metaclass Protocol` is defined. This class has a property “comment” [with value semantic of] ‘commentString’. So possibly they got it from Smalltalk. Don’t know.
- pjmlp 6y agoIf you search the book you will find samples like: sum: xValue with: yValue "sums two values" ^ xValue + yValue That is where commentString gets used. Several Lisp variants also have a similar approach.
- eternalban 6y agoI fiddled around with SmalltalkAgents back in the day. Don’t remember how the doc was surfaced though. This product probably deserves its own hn post: http://preserve.mactech.com/articles/mactech/Vol.10/10.04/SmalltalkAgents/index.html http://preserve.mactech.com/articles/mactech/Vol.10/10.04/Sm...
- pjmlp 6y agoIndeed, it looks quite interesting