v79
08/11/2019, 6:59 AMforEach
, forEachIndex
, File.walk()
just syntactic sugar that I can use instead of (for x in y)
or should I be much for careful when using them? I've discovered that forEach
cannot be mocked with a library like mockk and that's playing havoc with my testing.Hanno
08/11/2019, 7:04 AMSiebelsTim
08/11/2019, 7:04 AMv79
08/11/2019, 7:06 AMfor(int x : y)
, isn't it?SiebelsTim
08/11/2019, 7:09 AMv79
08/11/2019, 7:17 AMforEach
liberally, instead of the for
loop, or only in a few specific scenarios?SiebelsTim
08/11/2019, 8:07 AMLeon K
08/11/2019, 10:31 AMfor
loops as long as its not as part of a chain ;D Using `map`/`reduce` is recommended thoughTim Schraepen
08/11/2019, 11:02 AMFrank Harper
08/11/2019, 3:28 PMforEach
vs mocking at a higher level ?v79
08/12/2019, 5:29 PMforEach
block. It's prompted some long-overdue refactoring.Tim Schraepen
08/13/2019, 12:37 PM