You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the API only accepts &strs, but that causes some ineffiencies in caller code if
you are already working with IpAddrs at the callsite, or
you want to process the results (which are IpAddr) and look up some things at the callsite which are key'd on IPs, at which point you'd need to convert the results back to strs, or convert the IP keys at the callsite to IpAddr, doubling the amount of work either way.
The text was updated successfully, but these errors were encountered:
Hi @djahandarie - I take your point but a little leary of this one. At first glance, I'm not sure how to do it in an intuitive way that won't require a major API change. I'll think on it some more but also open to suggestions
Of course, simply adding a new fn add_addr(..., : IpAddr) (note no "ip") or some other name that makes sense would allow keeping the string version around but marked deprecated for a version.
I'd argue for breaking the API. I think it needs to break either as suggested in this issue or as in #34 . There are a couple of other places that I think would benefit from API changes, too.
Currently the API only accepts &strs, but that causes some ineffiencies in caller code if
The text was updated successfully, but these errors were encountered: