Project

General

Profile

Actions

Feature #20261

open

Add symbol synonyms for '' and nil for IO method line separator arguments

Feature #20261: Add symbol synonyms for '' and nil for IO method line separator arguments

Added by burdettelamar (Burdette Lamar) over 1 year ago. Updated over 1 year ago.

Status:
Assigned
Target version:
-
[ruby-core:116684]

Description

[Feature 20261] For IO's line-oriented read methods, there are two special values for the line-separator argument sep; I'm proposing to add (user-friendlier) symbol synonyms for those values:

  • :paragraph as synonym for '' (read paragraphs).
  • :slurp as synonym for nil (read all).

Details (code, documentation, tests) may be seen at https://github.com/ruby/ruby/pull/9921.

Updated by burdettelamar (Burdette Lamar) over 1 year ago Actions #1

  • Subject changed from Add symbol alternatives to '' and nil for IO line separators to Add symbol synonyms for '' and nil for IO method line separator arguments

Updated by burdettelamar (Burdette Lamar) over 1 year ago Actions #2

Updated by burdettelamar (Burdette Lamar) over 1 year ago Actions #3 [ruby-core:116849]

  • Assignee set to burdettelamar (Burdette Lamar)

Propose to add user-friendly synonyms (symbols) for IO line separator arguments '' (read paragraphs) and nil (read all). New symbol arguments would be :paragraph and :slurp. (I think this use of the term slurp is common in Perl and Python.)

Updated by burdettelamar (Burdette Lamar) over 1 year ago Actions #4

  • Description updated (diff)

Updated by peterzhu2118 (Peter Zhu) over 1 year ago Actions #5

  • Related to deleted (Misc #20281: DevMeeting-2024-03-14)

Updated by mame (Yusuke Endoh) over 1 year ago Actions #6 [ruby-core:117154]

Discussed at the dev meeting, and @matz (Yukihiro Matsumoto) (Yukihiro Matsumoto) said he wants to take time to consider it. No conclusion is reached.

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago Actions #7

  • Status changed from Open to Assigned
Actions

Also available in: PDF Atom