| Article: |
Building Unix Tools with Ruby | |
| Subject: | "more Rubyish" isn't relevant in this case | |
| Date: | 2003-09-21 05:13:39 | |
| From: | dblack | |
|
Response to: "It's code like this that causes unrest."
|
||
|
> "while gets {}" for example. What nonsense. > "$stdin.readlines.each {}" is much more Rubyish.
|
||
Showing messages 1 through 1 of 1.
-
"more Rubyish" isn't relevant in this case
2003-09-23 08:55:57 anonymous2 [View]
I think $stdin.each_line {} is better and more "rubyish" than any of the above.


