Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make types wrapping Strings no longer aliases #237

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Feb 14, 2023

What

Make types that wrap StringM, no longer aliases.

Why

We currently type alias types that wrap strings. But for opaques we don't alias, and the types are a new disjoint type that wraps the opaque. This is a little more verbose, but it makes it possible for us to attach functions to those new disjoint types. The inconsistency between strings and opaques is annoying and surprising.

Dependent on:

@leighmcculloch leighmcculloch changed the title Make types wrapping BytesM aliases Make types wrapping Strings no longer aliases Feb 15, 2023
@leighmcculloch leighmcculloch marked this pull request as ready for review February 15, 2023 00:48
@leighmcculloch leighmcculloch merged commit e3779b2 into main Feb 15, 2023
@leighmcculloch leighmcculloch deleted the bytesm-type-alias branch February 15, 2023 02:37
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.

2 participants