Hacker News new | past | comments | ask | show | jobs | submit login

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.




> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: