[squeak-dev] The Trunk: Kernel-cbc.1163.mcz

Chris Muller ma.chris.m at gmail.com
Mon Mar 26 02:04:09 UTC 2018


>> Anywhere this sort of code occurs:
>>
>>   ^ (someCondition) ifTrue: [true] ifFalse: [false]
>>
>> you can just write:
>>
>>   ^ (someCondition)
>>
>> Less is more.
>
>
> That's only true when (someCondition) is a Boolean.

Oops, yes, we certainly want an error in that case.  That'd be nasty
bug if it didn't.

Thanks.


More information about the Squeak-dev mailing list