Zero is a default state, use a 128 bit int initialized to 0, parse the left side and right side of ::, applying the results to the int with a logical and at the right bit offset, which you get by parsing from extremities, and it shouldn’t cause issues?
:: is actually a very elegant way to shorten these extremely long addresses, in my opinion.
I stumbled into some of these alternate IP address representations
a few months back while writing some unit tests for code that used
Python’s netaddr library.
>>> import netaddr
That’s pretty wild.
A fun article but it honestly doesn’t sound that bad, a lot of the stuff with IP addressing kind of makes sense (could be some kind of dunning kruger effect, though).
How is there not a single, canonical standard for this?