> > For the behavior of === you'll want to google "Henry Baker EGAL." > Essentially two values are === if and only if there is program that can > distinguish them. There's no way to distinguish two "instances" of 1 since > integers are immutable. I put instances in quotes because it's not even > really well-defined what that means for immutable values like 1. >
Wasn't it you who explained that for i in 1 print(i) end is correct Julia because single values must be considered as dim 0 array? :) Actually, a = 1 a[1] is also valid. But a = 1 a[1] = 2 is not: is `1` an array or not? I guess this is consistent, in a sense ... But still surprising. At least, a = 1 b = 1 a === b true seems logical now.
