Matthew Palmer wrote:

It increases complexity, and unnecessary code will also confuse in the
future since a programmer will look at that and think "I think that's
unnecessary, but perhaps there's something special this time that needs it".

It's special this time here:

#!/usr/bin/env ruby
while not $stdin.eof do
  puts $stdin.readline
end


and here:

#!/usr/bin/env ruby
puts $stdin.readline while not $stdin.eof

I prefer the second one, of course.

O Plameras

_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to