the generated `equals`/`hashCode`/`toString` methods when using `data class`es.
Currently the only way to prevent that is to avoid data classes entirely, or override those methods with custom implementations, which can be tedious.
s
spand
09/15/2023, 12:01 PM
Honest question: Why do you use data classes if you dont want any of its properties?
e
Edoardo Luppi
09/15/2023, 12:04 PM
I use data classes because they're handy, they give me free destructuring and default method implementations.
While those methods may be useful in the JVM (or internally for each platform), I want to reduce the exposed surface as much as possible when targeting JS. Also they make no sense from a JS/TS consumer perspective