Post AZTQqOCV2SITc9EDLM by josh@social.rebased.network
(DIR) More posts by josh@social.rebased.network
(DIR) Post #AZNFe1aJGMtrxR1zSy by alex@gleasonator.com
2023-09-03T00:59:22.549010Z
1 likes, 0 repeats
> 1 === 1true> 1 === 1 === 1falseI understand why this happens, but it’s still interesting.
(DIR) Post #AZNOr0jYdXx6feckGu by groundbeefhunter@poa.st
2023-09-03T02:43:10.202068Z
2 likes, 0 repeats
@alex I don't understand why this happens, can you explain?Is it that 1 === 1 === 1 is basically:(1 === 1) === 1 true === 1falseMeaning boolean is not a integer, or 1 casted to boolean is not "true"?
(DIR) Post #AZNV8Bwymqia6dTfdY by alex@gleasonator.com
2023-09-03T03:53:20.135192Z
1 likes, 0 repeats
@groundbeefhunter Exactly!
(DIR) Post #AZTQqOCV2SITc9EDLM by josh@social.rebased.network
2023-09-05T23:31:09.118700Z
1 likes, 0 repeats
1 = 1 = 1 in Elixir is fine though. Because you thought you wanted assignment but you secretly want binding and prolog