News for hackers. Stuff that matters.
Re:Java Without If by heisenbit on Saturday January 28, 2017 @09:30AM (#13506426)
Maybe it is a higher level of looping and certainly looks pleasing. However when it comes to using a debugger I have not found a way to avoid a higher level of effort.
Re:Java Without If by kaeluka on Saturday January 28, 2017 @09:41AM (#13506474)
What you say is true on the JVM. However, it is important to note that this does not need to be that way. One could imagine having the higher level loops and still debug them.

Of course, if you're writing actual code, now -- what I'm saying doesn't help you much. But if you're looking at a new language, it might be important to remember: not "filter" is broken that way, it's just the implementation on the JVM.

Re:Java Without If by zigzigzag on Saturday January 28, 2017 @10:47AM (#13506788)
IntelliJ's debugger has decent support for working with functional code. Also the IDE can convert between map/filter/fold type functional pipelines and imperative loops automatically.
Re:Java Without If by general_ai on Saturday January 28, 2017 @05:36PM (#13509922)
_Any_ debugger has _excellent_ support for working with imperative code. And not everyone uses an IDE, nor should it be a requirement.