Re:IPv4 addresses are silly, inet_aton(3) doubly so
by jml7c5 on Wednesday November 03, 2021 @07:20AM
(#29093164)
It's the colons that do it, in my opinion. They visually fill the gaps between segments, which makes it harder to pick out what is a digit and what is "empty space". Compare:
with
Though the best solution is to fully embrace the ASCII lifestyle that modern teletypes allow, and use the record separator 0x1f:
[ Parent
| on HN ]
Re:IPv4 addresses are silly, inet_aton(3) doubly so
by jml7c5 on Wednesday November 03, 2021 @11:38AM
(#29096161)
(I'll take this opportunity to repeat an earlier bikeshed of mine, which is that IPv6 address syntax should have used hyphens instead of colons, and dealt with the ensuing "is it a hostname or ip address?" problem by always requiring square brackets:
[abcd-ef01--2345]
C'est la vie.)