What to believe?

Alexander Lazarevic' Alexander at Lazarevic.de
Wed Jun 27 10:17:07 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Raab schrieb:
> That is not necessarily the case. One can make an equally good argument
> saying that "foo ifTrue:[...]" should expand to "foo ifTrue:[...]
> ifFalse:[foo]" which is coincidentally true for ifNil:ifNotNil: and
> *should* be true (and I'm glad we fixed this in Croquet) for
> ifEmpty:ifNotEmpty:. In other words if it is the case that:
> 
>   42 ifNil:[...] => 42
>   #(1 2 3) ifEmpty:[...] => #(1 2 3)

I had above expectation for ifEmpty: once and got so badly burned, that
I chickened out of using ifNil:, ifEmtpy: and their homies completely.

Alex
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGgjkhYiF2wSTEZ9gRAiK6AKD12y8htqds/V80+rQmNUKFoRtbwACfdE3K
GLrgsovXUVA2/PKaG8tlHZI=
=2lRB
-----END PGP SIGNATURE-----



More information about the Squeak-dev mailing list