Skip to content

Comments

Use typesafe IP/CIDR parameters everywhere.#448

Merged
jglogan merged 4 commits intoapple:mainfrom
jglogan:ip-typesafety
Dec 16, 2025
Merged

Use typesafe IP/CIDR parameters everywhere.#448
jglogan merged 4 commits intoapple:mainfrom
jglogan:ip-typesafety

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Dec 12, 2025

Co-authored-by: Agam Dua agamdua@users.noreply.github.com

@jglogan jglogan marked this pull request as draft December 12, 2025 04:14
@jglogan jglogan requested a review from dcantah December 12, 2025 04:15
@jglogan jglogan marked this pull request as ready for review December 12, 2025 12:17
- Closes apple#445.
- Refines IPv4 types, adds IPv6 types.
- For type safety and clarity, use IP and CIDR types where
  we were previously using String.

Co-authored-by: Agam Dua agamdua@users.noreply.github.com
Copy link
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this, LGTM! The only thing I even have feedback on is the placement of the new types. I honestly think czextras is probably a safe bet, but the types are very integral to this project now, so I was thinking maybe they might make sense in Containerization itself. Up to you

@jglogan jglogan merged commit 9ba8267 into apple:main Dec 16, 2025
2 checks passed
@jglogan jglogan deleted the ip-typesafety branch December 16, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Enhance IP address types and replace String-valued addresses.

3 participants