[squeak-dev] I was surprised
Lou at Keystone-Software.com
Tue Jan 3 18:22:53 UTC 2017
It is the same in VA Smalltalk. The code of false>>| is:
"Answer true if either the receiver or aBoolean
is true; answer false otherwise."
This is about as simple an implementation as one can have. Anything else would require testing
the class of the parameter (aBoolean) adding a fair amount of overhead for what I think is very
little gain. I expect the error would be found soon anyway when the result is sent an #ifTrue:
On Tue, 3 Jan 2017 07:17:45 -0500, Bob Arning <arning315 at comcast.net> wrote:
>This has been this way for aeons, but it surprised me:
>false | 'hello' ==> 'hello'
>Does anything actually depend on this being this way?
Keystone Software Corp.
More information about the Squeak-dev