RCR 158: There should be an ios-specific record separator
Submitted by legacy (Wed Oct 08 00:10:36 UTC 2003)
Abstract
This is a legacy RCR from Ruby Garden, submitted by grady. Matz has declared these RCRs obsolete, and asked that their authors resubmit them in the new format.
$, and other ios-related variables, are currently global. It would be nice if there were ios-specific versions of these variables, so you could say something like:
socket.output_record_separator = "
"
Problem
(RCR imported from old format)
Proposal
Analysis
(RCR imported from old format)
Implementation
(RCR imported from old format)
Oops, of course it's hard to get the right code to show up. Between the quotes should be backslash-r backslash-n.
The specification of IO#each allows you to do socket.each(" ") { }. I've still voted in favour of this for those cases where #each doesn't make sense.
|
Strongly opposed |
0 |
Opposed |
0 |
Neutral |
0 |
In favor |
0 |
Strongly advocate |
0 |
|
RCRchive copyright © David Alan Black, 2003-2005.
Powered by .
formatting woes (grady, 2003-10-07 20:32:57)
Not completely necessary (, 2003-10-08 10:58:53)