From: shevegen@... Date: 2018-09-13T16:07:34+00:00 Subject: [ruby-core:88998] [Ruby trunk Feature#15112] Introdudce the new singleton method STDERR.p Issue #15112 has been updated by shevegen (Robert A. Heiler). I agree with both what Kenta Murata and what Jeremy Evans wrote (to explain, I have no personal preference; I think both .p() would be useful anyway and I think this was the spirit of the original suggestion; I love p and pp). Martin suggested warn_p so I think this addresses more Kenta Murata, but I think, personally, the net benefit of warn_p may be significantly smaller than the "puts" versus "p" situation, where I think the gain is quite significant here, if you write a lot of p. (This is a bit similar to the proposal to do "require 'pp'" by default, which was a good change IMO). Anyway, my personal opinion is +1 to the idea behind the proposal - I have no real preference on it being on STDERR or $stderr or both; I think it may be useful no matter where the method resides. ---------------------------------------- Feature #15112: Introdudce the new singleton method STDERR.p https://bugs.ruby-lang.org/issues/15112#change-74026 * 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: