[squeak-dev] The Inbox: Kernel-fn.1151.mcz
Tobias Pape
Das.Linux at gmx.de
Fri Feb 9 18:53:18 UTC 2018
> On 09.02.2018, at 19:35, Tobias Pape <Das.Linux at gmx.de> wrote:
>
>>
>> On 09.02.2018, at 19:06, Fabio Niephaus <lists at fniephaus.com> wrote:
>>
>> On Fri, Feb 9, 2018 at 6:31 PM Chris Cunningham <cunningham.cb at gmail.com> wrote:
>> #xor: is on the same plane as #| and #& - evaluate both sides and apply
>>
>> We also have #and: and #or: - evaluate receiver, and evaluate argument block if and only if necessary.
>>
>> I use #and: and #or: for speed purposes - and to avoid side effects (sometimes).
>>
>> I'm just curious - is there an equivalent symbol for xor similar to | and & that we could use?
>>
>> In some languages, they use ^ but for obvious reason that's not useful. I wonder if we could use ~ for #xor:?
>
> Wikipedia says:
>
> "It is symbolized by the prefix operator J[2] and by the infix operators XOR (/ˌɛks ˈɔːr/), EOR, EXOR, ⊻, ⩒, ⩛, ⊕, ↮, and ≢. "
>
> Theoretically, we could use any of these symbols, (⊕ is often used in maths) but our fonts don't display them yet, so that has to wait.
>
> Further there:
>
> "+, a plus sign", well, would work (on booleans) but could be confusing
> "J, as in Jpq", not working for us
>
> ", sometimes written as
> • ><
> • >-<"
>
> THAT could work.
>
> I like
>
> a >< b
>
> it looks like an X a bit.
>
Since I am having stupid ideas:
Smalltalk at: #'_' put: nil
;P
Best regards
-Tobias
More information about the Squeak-dev
mailing list
|