Skip to main content

Timeline for The recommended Way to exit a Loop

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jul 2, 2017 at 20:08 vote accept fjf2002
Feb 27, 2015 at 15:04 comment added Doval I didn't say anything about merging CodeSnippet1 and the loop condition. But I also don't see why the duplication of a single line is unsatisfying to you.
Feb 27, 2015 at 6:23 comment added fjf2002 @Pieter B: How would that work? In Java, strings are immutible, thus can't be used as out parameter.
Feb 27, 2015 at 4:21 answer added Mike -- No longer here timeline score: 0
Feb 26, 2015 at 22:17 comment added Pieter B In reaction to your edit: you can still wrap the buffer-reader in a function and provide "line" as an argument to that function. No need for globals : RetunSuccessOnBufferedLineRead(line)
Feb 26, 2015 at 21:30 comment added fjf2002 @Doval: Thanks. But there can be more difficult occasions, see my edit.
Feb 26, 2015 at 21:29 history edited fjf2002 CC BY-SA 3.0
added 880 characters in body
Feb 26, 2015 at 0:28 answer added Pieter B timeline score: 0
Feb 26, 2015 at 0:01 answer added Jonathan Eunice timeline score: 12
Feb 25, 2015 at 23:46 comment added Doval The duplication of CodeSnippet1 is hardly a problem if you shove it into a function.
Feb 25, 2015 at 23:42 review First posts
Feb 26, 2015 at 0:37
Feb 25, 2015 at 23:35 history asked fjf2002 CC BY-SA 3.0