[Pharo-dev] Nice library looking for clever developers for little chat and lovely documentation

stepharong stepharong at free.fr
Sun Feb 12 16:17:30 EST 2017


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



More information about the Pharo-dev mailing list