3 ms·
Yeah it's annoying, I've come across numerous address parsing bugs because of this. I think the reason they needed to use a different delimiter is because IPv6
by tomxor 3y ago
Yeah it's annoying, I've come across numerous address parsing bugs because of this.
I think the reason they needed to use a different delimiter is because IPv6 addresses can also omit entire portions of zeros as a convenience feature to shorten addresses, which means there are a subset of shortened addresses that look exactly like IPv4 if not for the delimiter.
- kazinator 3y ago> I've come across numerous address parsing bugs because of this. To prevent that, you can write tons of test cases. IPv6 notation parsing and generating test cases are oodles of fun.