Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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));


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: