Common enough to include it?

Paolo Bonzini bonzini at gnu.org
Thu Jan 24 10:58:08 UTC 2008


Sebastian Sastre wrote:
> Hi Bert,
> 
> 	as a convenience I don't present objections. The usability problem I
> saw on that is the convenience being a hidden feature. Ofcourse
> Collection>>"collect: aValuableOrSymbol" could suggest it's existence
> palliating that.

The biggest problem is that you define Symbol>>#value: and friends to 
make Symbols and BlockClosures polymorphic with each other.  But then 
#numArgs is not polymorphic because

   #asLowercase numArgs => 0
   [ :x | x asLowercase ] => 1

Paolo



More information about the Squeak-dev mailing list