Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Evaluate using string wrapper types for slugs and petnames #385

Open
cdata opened this issue May 12, 2023 · 0 comments
Open

Evaluate using string wrapper types for slugs and petnames #385

cdata opened this issue May 12, 2023 · 0 comments
Labels
Enhancement New user-facing feature Good First Issue Good for newcomers

Comments

@cdata
Copy link
Collaborator

cdata commented May 12, 2023

In fixing #108 we introduced a few transparent wrapper types for strings so that we could more explicitly type what kinds of strings are expected in some cases and cut down on the amount of repeated documentation for those strings.

In #379 , we aligned on the possibility that this could be a useful pattern for two new stringly types: slugs and petnames.

We should evaluate potentially making wrappers for these types. The wrappers could be implemented to force validation during initialization, thereby cutting down on the need to guard all usages of slug/petname stringly types against possible misuse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New user-facing feature Good First Issue Good for newcomers
Projects
Status: 🏔️ Icebox
Development

No branches or pull requests

1 participant