4 ms·
Why not split the parameters? Address and port as separate values makes more sense to me.
by mrunkel 8y ago
Why not split the parameters?
Address and port as separate values makes more sense to me.
- JdeBP 8y agoIndeed, several mechanisms for passing this stuff to programs do exactly that. Notice that they are two distinct command-line arguments to these programs, for examples: * http://jdebp.eu./Softwares/nosh/guide/tcp-socket-listen.html http://jdebp.eu./Softwares/nosh/guide/tcp-socket-listen.html * https://cr.yp.to/ucspi-tcp/tcpserver.html https://cr.yp.to/ucspi-tcp/tcpserver.html One of the principles underlying this design was, famously, "Don't parse". Don't have one string with a separator character. Have two strings that are already separate. * http://cr.yp.to/qmail/guarantee.html http://cr.yp.to/qmail/guarantee.html
- zamadatix 8y agoMostly because of convention that the single identifier be a single string from the user. You might be able to get away with it e.g. in your home grown app but try to land that change in Chrome and you'll get pushback for not being standards compliant. The explicit way to define a v6 URL was first defined here https://www.ietf.org/rfc/rfc2732.txt https://www.ietf.org/rfc/rfc2732.txt and is to use []'s around the address portion.