[ruby-core:84494] Re: [Ruby trunk Bug#14239] warn open("|...")

From: Eric Wong <normalperson@...>
Date: 2017-12-27 08:05:36 UTC
List: ruby-core #84494
shugo@ruby-lang.org wrote:
> How about to add File.read etc. (similar to File.open) in 2.6?
> Code like `File.read(filename)` is considered to have no intention to open pipes.

I like that idea, I've been rewriting some stuff to use
"File.open(filename, &:read)" instead of IO.read.

Now, can we implement these new singleton methods in
prelude.rb instead of writing in C? :)

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next