[squeak-dev] Literals | #NaN vs. (Float bindingOf: #NaN)
Eliot Miranda
eliot.miranda at gmail.com
Thu Jul 4 21:17:36 UTC 2019
Hi Marcel,
On Thu, Jul 4, 2019 at 1:26 AM Marcel Taeumel <marcel.taeumel at hpi.de> wrote:
> Hi, there.
>
> Given such a method:
>
> Float >> #foobar
> ^ #(NaN)
>
> Should this be true:
>
> (Float >> #foobar) hasLiteral: (Float bindingOf: #NaN)
>
> I think not...
>
I agree. (Float >> #foobar) hasLiteral: #NaN should be true, but not the
bindingOf: variant. However, in the UI it is helpful if the false positive
shows up because that symbol *could* be used in a query. So IMO at some
level the UI ought to be using two queries, one for the binding and one for
the binding's key.
> Best,
> Marcel
>
>
--
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190704/96e2c417/attachment-0001.html>
More information about the Squeak-dev
mailing list
|