Mikhail
07/26/2022, 7:54 PMLazy implement equals and hashcode ?Dominaezzz
07/26/2022, 7:57 PMMikhail
07/26/2022, 7:58 PMMikhail
07/26/2022, 7:58 PMephemient
07/26/2022, 8:02 PM== could change depending on when whether it's been read or not? no, that's terrible.Mikhail
07/26/2022, 8:06 PMDominaezzz
07/26/2022, 8:07 PM== for Lazy , I can't objectively justify it.ephemient
07/26/2022, 8:07 PMjw
07/26/2022, 8:09 PMDominaezzz
07/26/2022, 8:12 PMLazy<String> and Lazy<List<*>> . If they're both uninitialised, should they be equal? (Note that you can't do runtime type checks)ephemient
07/26/2022, 8:12 PM== just based in static types, usuallyephemient
07/26/2022, 8:13 PMlazy { println("a"); 0 } == lazy { println("b"); 0 }?Mikhail
07/26/2022, 8:14 PMMikhail
07/26/2022, 8:14 PM