Charlie Gibbs wrote:
> On 2021-01-08, Björn Lundin wrote:
>> with accompanying truth tables that are not-so-obvious is just a bad joke.
>>
>>
>>
>> true == 0 -> false
>> true === 0 -> false
>>
>> true == 1 -> true
>> true === 1 -> false
>>
>> WTF?
>
> That sounds like a description of one of those bogus programming
> languages that pops up in humour columns from time to time.
> One of them proposed an operator meaning "is more equal than"
> (shades of Animal Farm).
Looks entirely reasonable to me, once you accept that == means "evaluates
to" and === means "is". That can be a useful distinction, and often a
necessary one in loosely typed languages.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|