Re: Terminolgy: the verb corresponding to "toString"



Roedy Green wrote:
What is the tersest way to document a toString style method.

I would like to say something like this:

"displays" the width and height in both metric and imperial measure

But it does not display anything, just prepares for display.

I have seen people also use misleading terms like "show" and "print".

What do you use?

The best I can come up with is "format". Sun uses this is the
SimpleDateFormat class.

To me, "format" implies some sort of complicated masks or a choice of
layouts.

"prepare" is too vague.

Perhaps a phase "convert x to a string"

I've seen "stringize" used as a verb, but I don't like
it much. Besides, speakers of Q.E. will want to spell it
"stringise" and there'll be no end of fruitless debatez.

Something like "Converts this Thing to a String" or
"Renders this Thing as a String" or "Returns a String
representing this Thing" would suit me better.

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: Displaying Currency on a VB . NET windows form
    ... Isn't there a property that just can be set on how to display the Money, ... You can put this string object in a TextBox. ... A date field has a "format" property. ... any decimals. ...
    (microsoft.public.dotnet.general)
  • Re: A Simple BMP Converter
    ... "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal ... Private Sub cmdSysInfo_Click ... Open Registry Key ... > color bar in the color display. ...
    (comp.lang.basic.visual.misc)
  • Re: Multiple date formats in a Table
    ... a date field could not store just the year 2004 - it would have ... display it as 1 Jan 2004, or you would have to just display the year for all ... The conversion of your existing text format date should be done in a query, ... Public Function TextToDate(strDate As String) As Date ...
    (microsoft.public.access.tablesdbdesign)
  • Re: help collecting data.
    ... Dim GetC As String ... the code in the cell that I want the order numbers(info from column C ... "Otto Moehrbach" wrote: ... display them both, seperated by a comma ...
    (microsoft.public.excel.misc)
  • Re: Date Time Variant NOT read when loading CSV
    ... Time format ... General to see that XL's parsed the string correctly - the two colons ... To correct the display, ... > In a CSV Excel reads most things OK ...
    (microsoft.public.excel.misc)