Talk:Parse an IP Address: Difference between revisions

m
→‎Sloppy: added some comments. -- ~~~~
m (comment on IP address expressed in decimal. -- ~~~~)
m (→‎Sloppy: added some comments. -- ~~~~)
Line 25:
:: The string format is unambiguous. But result format is ambiguous, here. --[[User:Rdm|Rdm]]
::: Ah, I see now. I only saw the output format of the task to be relevant in that it required comprehension of the input format to generate. The internal representation (in particular, correct distinction of host and port addresses) was what I was more interested in. Requiring the port address in the output helps a reviewer understand how the port number was understood. Change the requirements for the output format however you see fit, with that requirement in mind. (I'd try changing it, but I've been without my glasses for a week, and doing things on the computer has been very, very error-prone--even trying to write coherently. )--[[User:Short Circuit|Michael Mol]] 15:15, 28 September 2011 (UTC)
 
: I don't understand (above) the statement saying why the "extra data" (the port) is required to be ignored (or is being mishandled). I see no problem with parsing/displaying it. If it can be parsed, it's shouldn't be an error to include it in the IP address. -- [[User:Gerard Schildberger|Gerard Schildberger]] 15:00, 23 April 2012 (UTC)
 
=== Port 0 ===