Skip to content

Private stuff#18

Merged
cbeyls merged 2 commits into
cbeyls:mainfrom
Goooler:private
Sep 29, 2025
Merged

Private stuff#18
cbeyls merged 2 commits into
cbeyls:mainfrom
Goooler:private

Conversation

@Goooler

@Goooler Goooler commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@cbeyls

cbeyls commented Sep 29, 2025

Copy link
Copy Markdown
Owner

What is the motivation behind making the preview functions private? I thought it was common practice to declare them public.

@Goooler

Goooler commented Sep 29, 2025

Copy link
Copy Markdown
Contributor Author

@alirahimpour89

alirahimpour89 commented Sep 29, 2025

Copy link
Copy Markdown

What is the motivation behind making the preview functions private? I thought it was common practice to declare them public.

Previews should always be private. Having them public slows down auto complete (if you have many) and makes them accessable from places they shouldn't be called.

@cbeyls

cbeyls commented Sep 29, 2025

Copy link
Copy Markdown
Owner

Good to know! I wish Google would update their documentation and samples.

@cbeyls cbeyls left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the contribution

@cbeyls
cbeyls merged commit 3f0437f into cbeyls:main Sep 29, 2025
6 checks passed
@Goooler
Goooler deleted the private branch September 29, 2025 23:54
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.

3 participants