News for hackers. Stuff that matters.
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by hnriot on Sunday January 18, 2015 @12:30AM (#8906759)
it's hardly java's fault he's looking at a stack frame and not seeing the variables that belong to a different stack. This is simply a matter of selecting a frame prior to the forEach.
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by iwince on Sunday January 18, 2015 @11:25AM (#8907860)
Eclipse's debugger can be configured to show a refined output. The controls are in the upper right in the Debug Perspective. Programmers who make applications are not programmers who write IDE's. If I'd noticed this I don't know if I'd recognized it or dug into it more to understand it but a snarky comment like the one I replied to is not appropriate or helpful.
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by chris_wot on Sunday January 18, 2015 @01:52AM (#8906912)
I disagree. The lambda expression allows him to use variables outside of the stack frame, why shouldn't the debugger also be able to show those same variables?
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by jdmichal on Sunday January 18, 2015 @02:48AM (#8906985)
The single example does not show a lambda that requires variable capture.