3 ms·
IMO it's the eta-reductions that are terrible for readability. I think the following is fine: Optional<String> x = Helper.functionOne()
by ebola1717 10y ago
IMO it's the eta-reductions that are terrible for readability. I think the following is fine:
Optional<String> x = Helper.functionOne()
.map((descriptiveName) => Helper.functionTwo(descriptiveName))
.flatMap((descriptiveName) => Helper.functionThree(descriptiveName));