Piotr Krzemiński
11/08/2021, 1:31 PMequals
and hashCode
, and it's actually great point - I've never looked at it this way, maybe because I create deeply immutable data classes (unless I refactor some JavaBeans-style code, I leave `var`s temporarily)
IMO IntelliJ should add a warning/inspection, like it's done for e.g. using Optional
for class fields. The goal still being able to create a concise, kotlinic version of a JavaBean, but not pretending that it's fine 🙂 .WDYT?dmcg
11/08/2021, 10:02 PMdmcg
11/08/2021, 10:09 PMdmcg
11/08/2021, 10:12 PMPiotr Krzemiński
11/09/2021, 6:18 AMjava.util.Date
as a val
, these things can happen to even experienced and diligent coders. There's a question how to implement it correctly so that it works for a bunch of edge cases, but in terms of what would be useful - it makes sense.Piotr Krzemiński
11/09/2021, 6:21 AMnatpryce
11/09/2021, 6:45 AMnatpryce
11/09/2021, 6:45 AM