News for hackers. Stuff that matters.
Re:Philosophy and "for" loops — more from Go and Rust by arethuza on Thursday July 11, 2013 @10:47AM (#6026333)
That looks like (ab)using exceptions for normal flow of control!
Re:Philosophy and "for" loops — more from Go and Rust by coldtea on Thursday July 11, 2013 @11:54PM (#6030828)
It's only "abusing" if it's not idiomatic.
Re:Philosophy and "for" loops — more from Go and Rust by arethuza on Friday July 12, 2013 @05:11AM (#6031695)
Yes, but I have seen production Java code that used exceptions to return values from methods as part of normal execution - which is what it reminded me of and that most certainly was abusing :-)