Submitted by transami (Sun Dec 07 21:12:05 UTC 2003)
x.concat(y.upcase)
To inspect y.upcase one has to do:
y_tmp = y.upcase p y_tmp x.concat(y_tmp)
It would be much nicer if p would return the argument(s) it was given, so we could simply do this instead:
x.concat(p(y.upcase))
Comments | Current voting | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
RCRchive copyright © David Alan Black, 2003-2005.
Powered by .
Re: Allow #p to pass through its argument(s) (marcus_erronius, 2003-12-08 23:55:19)
if you really need p to return it's arguments, you could just homebrew one that does.
Have home brewed, that's why I suggest (transami, 2003-12-09 04:31:36)
As for $DEBUG, that makes sense for longer term debugging needs. But often one is just "spot inspecting" to see what kind of output is being produced to make sure the code is coming out as expected/why its not coming out as expected.