[squeak-dev] Re: [Pkg] The Trunk: Compression-ul.10.mcz

Bert Freudenberg bert at freudenbergs.de
Sun Dec 13 16:47:15 UTC 2009


Am 13.12.2009 um 04:57 schrieb Levente Uzonyi:
> 
> On Sat, 12 Dec 2009, Bert Freudenberg wrote:
> 
>> Am 12.12.2009 um 15:20 schrieb commits at source.squeak.org:
>>> 
>>> Levente Uzonyi uploaded a new version of Compression to project The Trunk:
>>> http://source.squeak.org/trunk/Compression-ul.10.mcz
>>> 
>>> ==================== Summary ====================
>>> 
>>> Name: Compression-ul.10
>>> Author: ul
>>> Time: 12 December 2009, 2:18:43 am
>>> UUID: 070e2365-df5f-514e-8d90-fa49c065cb01
>>> Ancestors: Compression-edc.9
>>> 
>>> - replace sends of #ifNotNilDo: to #ifNotNil:, #ifNil:ifNotNilDo: to #ifNil:ifNotNil:, #ifNotNilDo:ifNil: to #ifNotNil:ifNil:
>> 
>> Why?
> 
> Because it works, it's simpler, it's faster. I always thought that #ifNotNilDo: is just a workaround, because the compiler's inlining didn't accept the block with the argument.

I see. 

It's just that methods that accept variadic blocks do not feel right to me. Maybe in other languages this is more commonly used, but it seems less "Smalltalky" to me.

- Bert -





More information about the Squeak-dev mailing list