Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] equals() in AST nodes

Hi All,

Is there any reason to have equals() methods in basic AST nodes implemented in DLTK core? 
I guess it ASTNode should have the following to disallow weird and useless implementations of equals() in class hierarchy:

public final boolean equals(Object obj) {
return this == obj;
}

public final int hashCode() {
return super.hashCode();
}

What do you think?

Thanks,
Michael

Back to the top