in reply to Re^3: A way to avoid repeated conditional loops
in thread A way to avoid repeated conditional loops
I already pointed out that AR's version is wrong. You can't rely on readline returning EOF or errors more than once.
I thought mine was better than JavaFan's because it lead to the elimination of the duplicate "g()", but that turned out to be a mistake (as per my earlier update).
I still prefer mine over JavaFan's, though. Since mine flows from top to bottom, it requires less skipping around to follow the code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: A way to avoid repeated conditional loops
by jffry (Hermit) on Aug 24, 2011 at 21:46 UTC |