ruby picture

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)
ruby picture
Comments Current voting

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.


Strongly opposed 0
Opposed 0
Neutral 0
In favor 0
Strongly advocate 0
ruby picture
If you have registered at RCRchive, you may now sign in below. If you have not registered, you may sign up for a username and password. Registering enables you to submit new RCRs, and vote and leave comments on existing RCRs.
Your username:
Your password:

ruby picture

Powered by .