On Mon, 12 Sep 2011 20:55:42 +0300, David Nadlinger <[email protected]>
wrote:
As discussed on IRC, throwing on reverse lookup failure seems very wrong
to me, as it is certainly expected. In my opinion, the best solution
would be to return null (empty string), but I am not certain if it
should still throw if something went wrong during lookup (besides the IP
address not being found).
I'm thinking of making all of Address.to(Addr|HostName|Port|Service)String
return null on failure for consistency. Sounds good?
I'll probably change the current std.socket.toHostAddrString() to behave
like this, as the current behavior is inconsistent (when the
getHostByAddr fallback is used), and I accidentally left it undocumented
anyway.
I'd prefer if we minimized changes on the master branch. I hope we can
finalize and merge in the cleaned-up version before the next release
anyway.
--
Best regards,
Vladimir mailto:[email protected]