-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Hide more internal functionality under symbols #1387
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
Conversation
pkg.pr.new packages
benchmark commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹🧼
export const $gpuRepr = Symbol(`typegpu:${version}:$gpuRepr`); | ||
/** | ||
* Type token for the inferred partial representation of a resource. | ||
* If present, it shadows the value of `$repr` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for partial IO
I'm still not really convinced on using so many symbols. As we discussed earlier, they don't really provide privacy, the only advantage I see is that there are no possible name collisions. Why not hide these potential props behind |
I was leaning towards creating a unique symbol for each, rather than putting them under
That's definitely something we could do 👍. But maybe as part of a separate PR. |
No description provided.