printpretty() prints directly to standard out, which is not the behavior you want when you're trying to get the string representation of a type or quote to include in your own error message or log message. layoutstring() and prettystring() get the appropriate string, but aren't documented anywhere.
printpretty()
prints directly to standard out, which is not the behavior you want when you're trying to get the string representation of a type or quote to include in your own error message or log message.layoutstring()
andprettystring()
get the appropriate string, but aren't documented anywhere.