Comment on this RCR (edit wiki page) | RCRchive home

RCR 158: There should be an ios-specific record separator

submitted by grady on 2003-10-07 20:30:36


This is a legacy RCR. If this is your RCR, please resubmit it using the new format and process.


$, 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 = "
"

Vote for this RCR

Strongly opposed [1]
Opposed [0]
Neutral [0]
In favor [5]
Strongly advocate [5]

Change the status of this RCR to:

accepted

rejected

withdrawn


Add comments here

formatting woes (grady, 2003-10-07 20:32:57)

Oops, of course it's hard to get the right code to show up. Between the quotes should be backslash-r backslash-n.

Not completely necessary (, 2003-10-08 10:58:53)

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.

Back to RCRchive.


RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog