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

export of "contains" conflicts with Base #203

Open
alex-s-gardner opened this issue Sep 13, 2024 · 7 comments
Open

export of "contains" conflicts with Base #203

alex-s-gardner opened this issue Sep 13, 2024 · 7 comments

Comments

@alex-s-gardner
Copy link
Contributor

WARNING: both GeometryOps and Base export "contains"; uses of it in module Main must be qualified

@asinghvi17
Copy link
Member

Ah, I usually use it as import GeometryOps as GO for exactly this reason. I guess we could stop exporting contains though.

@alex-s-gardner
Copy link
Contributor Author

bumping this again as I continually run into this error:

Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
Hint: a global variable of this name also exists in Base.

@rafaqz
Copy link
Member

rafaqz commented Nov 15, 2024

Yeah we should stop exporting it, PR accepted ;)

@alex-s-gardner
Copy link
Contributor Author

alex-s-gardner commented Nov 15, 2024

All GeometryOps methods are exported so I'm not sure how we want to deal with this. Do we just not export contains or does GO stop exporting all methods?

@rafaqz
Copy link
Member

rafaqz commented Nov 15, 2024

Just contains for now I think?

Ohhhh @asinghvi17 has that export loop. This is what I meant about it being hard for people to understand.

Explicitly exporting names is clearer

@alex-s-gardner
Copy link
Contributor Author

#233

@asinghvi17
Copy link
Member

The export loop was only in the Core PR and I think we dropped that anyway.. but thanks for the pr! Merging core will be a breaking release so we can do it with that

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

3 participants