On Aug 27, 9:13 am, Trans <transf... / gmail.com> wrote:
> Has anyone else every wished #p would passthru it's argument? Ie. Work
> like this:
>
>   def p(x)
>     puts x.inspect
>     x
>   end

I can't recall ever wanting that. (Though I did find it odd that it,
and puts, return nil for no seemingly good reason.)

Have *you* wished that, Trans? If so, I'd be interested in your use
case.


> Is there any good reason that it shouldn't?

I can't think of any good reason, other than perhaps reserving the
return value for some more useful information in the future.