0

Same or not same

[1.0, 2] & [1, 2] => [2] but [1.0, 2] <=> [1, 2] => 0 and even [1, 2].equal? [1, 2] => false is there a rule to help understand when an operation is about actual value of an argument, when it considers it's kind, and when it actually checks it's internal ID something.. it's getting confusing.. memorizing is only way?

28th Sep 2018, 4:33 AM
Tomasz Drgas
Tomasz Drgas - avatar
1 ответ
+ 1
Yes, memorizing is the way (using it is automatic) or you should try/search everytime youu need... Also because different languages have different sintax
28th Dec 2018, 7:37 AM
Nifriz
Nifriz - avatar