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

Opaque types #21

Open
blaix opened this issue Jul 10, 2024 · 3 comments
Open

Opaque types #21

blaix opened this issue Jul 10, 2024 · 3 comments

Comments

@blaix
Copy link
Collaborator

blaix commented Jul 10, 2024

Cover the what, why, and how of opaque types. It would be nice to be able to point to this when talking about some of the upcoming changes to gren.

Maybe on the modules page, the types page, or a new page or section on common patterns.

@blaix
Copy link
Collaborator Author

blaix commented Jul 10, 2024

I guess this is already kind of covered (without naming the concept) in https://gren-lang.org/book/syntax/modules/#exposing

but IMO unless you're already familiar with the concept, it probably doesn't make much sense on what it means or why you would or wouldn't expose a type's constructors.

@blaix
Copy link
Collaborator Author

blaix commented Jan 3, 2025

Maybe should be added as a page to the Appendix section (that the exposing section mentioned above links to)?

or maybe a "Type Patterns" page that covers opaque, phantom, and maybe other patterns / lingo?

@robinheghan
Copy link
Member

A "Type Patterns" page sounds like a good idea.

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

No branches or pull requests

2 participants