v7908/11/2019, 6:59 AM
just syntactic sugar that I can use instead of
or should I be much for careful when using them? I've discovered that
(for x in y)
cannot be mocked with a library like mockk and that's playing havoc with my testing.
Hanno08/11/2019, 7:04 AM
SiebelsTim08/11/2019, 7:04 AM
v7908/11/2019, 7:06 AM
, isn't it?
for(int x : y)
SiebelsTim08/11/2019, 7:09 AM
v7908/11/2019, 7:17 AM
liberally, instead of the
loop, or only in a few specific scenarios?
SiebelsTim08/11/2019, 8:07 AM
Leon K08/11/2019, 10:31 AM
loops as long as its not as part of a chain ;D Using `map`/`reduce` is recommended though
Tim Schraepen08/11/2019, 11:02 AM
Frank Harper08/11/2019, 3:28 PM
vs mocking at a higher level ?
v7908/12/2019, 5:29 PM
block. It's prompted some long-overdue refactoring.
Tim Schraepen08/13/2019, 12:37 PM