-
Notifications
You must be signed in to change notification settings - Fork 6
Bug when comparing a nested array #110
Comments
@Graur please check |
But this tests passed successfully.
|
@EugeneDar Looks like expected behavior for me, since |
@yegor256 I think |
@yegor256 what do you think? |
@EugeneDar if we do this, we will have to re-implement |
@yegor256 I think we should listen to more opinions. |
@EugeneDar in the mean time, read this: https://www.yegor256.com/2017/07/11/how-to-redesign-equals.html |
@yegor256 I read the article, and I agree that this approach does have benefits. However, if two objects happen to be equal, I want to be sure, not pray that they don't accidentally have the same byte representation. Do you agree with that? |
@EugeneDar it's a philosophical question. Does apple equal to a pear if they both taste the same? |
@yegor256 I assume that most programmers using the |
@EugeneDar during the analysis we will transpile source languages to EO. During this tanspilation we will make implicit type information from Java explicitly present in EO: voif f(int x) {
return x + 1;
} This is EO:
|
@yegor256 I agree that this is a solution for strictly typed languages. But what to do with non-strictly typed languages? Suppose we critically care about the result of the
Can we ensure that such a case works correctly? |
@yegor256 I agree. |
This test crushes because
array
doesn't have methodeq
.The text was updated successfully, but these errors were encountered: