Hi guys
I realized that value: valueWithPossibleArguments: cull: and others
supernice messages do not have the method
comments they deserved.
cull: anArg
^numArgs = 0
ifTrue: [self value]
ifFalse: [self value: anArg]
=> I started
https://pharo.fogbugz.com/f/cases/19689/Add-method-comments-to-cool-block-messagescull: anArg
"Execute the receiver with one or zero arguments depending on the
receiver number of required arguments."
"([ 12 ] cull: 13)
>>> 12
"
"([:x | x + 12] cull: 3)
>>> 15
"
^numArgs = 0
ifTrue: [self value]
ifFalse: [self value: anArg]
Any takers?
because it would be really nice to say to newcomers that our core
libraries are super cool.
Stef