I still feel actual joy when writing `equals` like this. 😀 #Java
(It's a record, so `instanceof` is ok.)
I still feel actual joy when writing `equals` like this. 😀 #Java
(It's a record, so `instanceof` is ok.)
@tbeernot True and some linters and code styles even require that. But I've internalized that &&/|| is like */+ and so I don't add them.
(&& is exactly like * on {0, 1} and || is almost like + on {0, 1} - just need to define 1 + 1 = 1. 😉)