From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Mon, 5 Feb 2007 07:25:28 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] s_putc and Runes In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 0d2be318-ead2-11e9-9d60-3106f5b1d025 i think this is a very powerful idea. although the interface is high-level, and if you need to format a structure, you need to write a print format, it results in a good old char*, not a String*. the code that uses String*s tends to have a fair percentage of code converting between char* and String*. in a few cases i've removed 30 or 40 lines of code by converting from a String* to a char*/*print because the conversion goo and String helper functions and conversion goo were no longer needed. - erik On Sun Feb 4 22:25:53 EST 2007, rsc@swtch.com wrote: > I confess that most of the time, when I need to write to a > growable string buffer, I just use fmtstrinit, fmtprint, and fmtstrflush. > It's just easier, and you get all the print verbs! > > Russ