-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Re-considering package generic boundary #1315
Comments
Do we need to speicfy types of parameters and/or result of a proto function? |
I think it is more safety because it protects unexpected type errors caused by wrong usage. |
OK, I understand. |
I think it will take 1 week to fix package boundary issues. |
OK.I'll release v0.14.0 without #1223 because it already contains enough updates. |
definitions of enum, struct and union in a proto package are same with actual definitions. |
I think so too. But completly automatic copy may be confusable about where these types are defined. |
#1223 and #1294 introduced generic package basename as generic boundary, but there seems to be a problem.
For example, the function signature of
func
is not determined in the following code.So deep nested
foo_pkg
causes long and complex type error like C++'s template.This is the reason why
proto
module was introduced.So I think making clear what members are visible through generic variables using
proto package
is better even though some boilerplate code is necessary.
By this approach, controlling member visibility is enabled.
@taichi-ishitani How do you think about it?
The text was updated successfully, but these errors were encountered: