Nice library looking for clever developers for little chat and lovely documentation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Nice library looking for clever developers for little chat and lovely documentation

stepharong
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-messages

cull: 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