From: Bob Alexander Date: 2002-03-13T12:00:51+09:00 Subject: Re: Some potential RCRs Joel VanderWerf wrote: > > on 02/03/13, "Bob Alexander" writes: > > |------------------ > > |"p" method should return its last argument, unconverted. > > So, interactively, it woud do: > > irb(main):001:0> p "foo", "bar" > "foo" > "bar" > "bar" > > Maybe there should be two different p-like methods, one for interactive > use and one for inserting as a debugging aid? That occurred to me too, and initially I also thought it killed my idea. Then it dawned on me that we probably don't use "p" much in an interactive session, since just typing an expression prints the value. So for your example the more natural equivalent would be irb(main):001:0> "foo" "foo" irb(main):002:0> "bar" "bar" or irb(main):001:0> ["foo", "bar"] ["foo", "bar"] It seems that "p" is more for insertion into programs and is not really needed in interactive mode. Bob