Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Add Identifier as a type, not an alias #47

Open
hadronized opened this issue Nov 18, 2018 · 1 comment
Open

Add Identifier as a type, not an alias #47

hadronized opened this issue Nov 18, 2018 · 1 comment

Comments

@hadronized
Copy link
Owner

That type would ensure the grammar is respected:

  • It doesn’t have its first character a digit or anything else than a lowercase or uppercase ASCII alpha.
  • It’s not empty.
hadronized added a commit that referenced this issue Nov 20, 2018
They’re now type wrappers and not type aliases. Also, add the TypeName
type wrapper.
hadronized added a commit that referenced this issue Nov 20, 2018
They’re now type wrappers and not type aliases. Also, add the TypeName
type wrapper.
hadronized added a commit that referenced this issue Nov 20, 2018
They’re now type wrappers and not type aliases. Also, add the TypeName
type wrapper.
@hadronized
Copy link
Owner Author

It’s not an alias anymore, but type safety is not enforced. We have to take care of that.

hadronized added a commit that referenced this issue Nov 21, 2018
Those functions are not enforced (yet), as people can still use the
From<&str> / From<String> interface, but we’re getting there.
hadronized added a commit that referenced this issue Nov 21, 2018
Those functions are not enforced (yet), as people can still use the
From<&str> / From<String> interface, but we’re getting there.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant