[ruby-core:89376] [Ruby trunk Feature#15112] Introducing the short form of `STDERR.puts expr.inspect`.

From: muraken@...
Date: 2018-10-12 02:02:52 UTC
List: ruby-core #89376
Issue #15112 has been updated by mrkn (Kenta Murata).

Subject changed from Introdudce the new singleton method STDERR.p to Introducing the short form of `STDERR.puts expr.inspect`.

I totally agree with Jeremy and Usaku, so I want to change the title of this issue.


----------------------------------------
Feature #15112: Introducing the short form of `STDERR.puts expr.inspect`.
https://bugs.ruby-lang.org/issues/15112#change-74417

* Author: mrkn (Kenta Murata)
* Status: Open
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
I sometimes write `STDERR.puts obj.inspect` to print debug message to standard error.
I want to write it as `STDERR.p obj`.
It can be realized by introducing `p` singleton method in `STDERR` object.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next