silvio
05/03/2020, 8:19 AMLastExceed
05/03/2020, 8:48 AM.forEach { println(it) }
) and avoid it in nested situations (since name shadowing is almost never a good thing). otherwise decide case by case.
one could argue that for consistency you should just specify a name everywhere, but sometimes (especially in single-line scenarios) this will feel unnecessarily verbosesilvio
05/03/2020, 9:33 AMLastExceed
05/03/2020, 9:35 AMit
silvio
05/03/2020, 9:37 AMdto.map { ResponseEntity.ok(it) }
LastExceed
05/03/2020, 9:38 AMit
keyword exists forDavid Eriksson
05/03/2020, 9:38 AMdto.map(ResponseEntity::ok)
David Eriksson
05/03/2020, 9:39 AMit
needed if the signature is compatible 🙂silvio
05/03/2020, 9:40 AMsilvio
05/03/2020, 9:41 AMDavid Eriksson
05/03/2020, 9:42 AMit
is fine then.silvio
05/03/2020, 9:42 AMDavid Eriksson
05/03/2020, 9:43 AM