
On Tue, Feb 17, 2009 at 11:43 AM, Stewart, Robert <Robert.Stewart@sig.com> wrote:
On Tuesday, February 17, 2009 2:39 PM Emil Dotchevski wrote:
My question is, what is the motivation for the convert function? What's the use case for it that doesn't work with to_string/from_string?
That was my suggestion to account for both conversion directions and eliminate "string" from the name, thus opening the interface to other conversions.
An interface that converts anything to anything else is a separate issue, and requires a separate discussion. If we concentrate on converting from and to string, I think that two families of functions, to_string and from_string is the most logical approach. When I want a string, I know that I want a string and at that time I don't care about any other conversions. I can't think of a use case when I might want a string but might also want something else. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode