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

doc: is exporting a class the same as the constructor #453

Open
JosiahParry opened this issue Oct 1, 2024 · 0 comments
Open

doc: is exporting a class the same as the constructor #453

JosiahParry opened this issue Oct 1, 2024 · 0 comments

Comments

@JosiahParry
Copy link

Related #348

The package website says:

"If you export a class, you must also set the package argument, ensuring that classes with the same name are disambiguated across packages."

What I am not clear of here is if exporting a class is the same as exporting the constructor. Is this the case?

I think a super simple code example with #' @export in this section would do wonders to clarify that.

Additionally, in this context, is there a naming convention we should follow for the class constructors? (I could make a new issue for this if desired)

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

1 participant