Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

documenting traits #364

Closed
wants to merge 1 commit into from
Closed

documenting traits #364

wants to merge 1 commit into from

Conversation

signorecello
Copy link
Collaborator

@netlify
Copy link

netlify bot commented Sep 7, 2023

Deploy Preview for noir-docs ready!

Name Link
🔨 Latest commit 40c442c
🔍 Latest deploy log https://app.netlify.com/sites/noir-docs/deploys/64f99494d544760008e11cc4
😎 Deploy Preview https://deploy-preview-364--noir-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

I think this documentation is rather lacking in terms of showing use cases that traits are useful for, explaining why you'd want a trait, etc. I could see some of it confusing users as well, such as the part of needing to define a struct first to implement a trait on. While this is usually the case, it isn't needed if you're implementing your own trait on an existing type. I think we should start from a usecase of when traits are needed eg. providing functionality on generic types "any type T that has an equality function," and work from there.

I'm also blocking this at the moment since I think we should avoid documenting traits until they're fully implemented and working in Noir. A note that they're being worked on right now is good but I don't want to have users seeing them in the documentation and trying to use them before they're ready.

@Savio-Sou
Copy link
Contributor

Thanks @signorecello!

Apologies on forgetting to update the doc issue. Let's skip this for v0.10.5 and leave this open for further follow up until we're closer to completing majority of the tasks listed in noir-lang/noir#2568 🙌

@signorecello signorecello marked this pull request as draft September 25, 2023 09:12
@signorecello
Copy link
Collaborator Author

converting to draft while we figure it out

@signorecello
Copy link
Collaborator Author

closing, as #395 supersedes it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document Traits
3 participants