[TUHS] python

Rob Pike robpike at gmail.com
Sat Aug 5 08:36:48 AEST 2023

And neither does go.
prints x, using its default format, which is not coincidentally available
in Printf as %v.


On Sat, Aug 5, 2023 at 7:17 AM Douglas McIlroy <
douglas.mcilroy at dartmouth.edu> wrote:

> > Most of the time I'd rather not have to care whether the thing
> > I'm printing is a string, or a pointer, or an integer, or whatever:
> > I just want to see its value.
> > Go has %v for exactly this.  It's very nice for debugging.
> Why so verbose? In Basic, PRINT required no formatting directives at all.
> Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20230805/29ffe335/attachment.htm>

More information about the TUHS mailing list