Replies: 1 comment
-
The behavior in JetBrains IDEs is a bit similar - not ideal. So far I couldn't think of a naming scheme that seemed really convincing to me. I've considered (based on
I dismissed I hope we can get more user feedback on this before we make a change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the following proto message:
It will generate a file with:
Then in application code you'd import it:
This has two negative effects (especially inside vscode, but likely affects other editors as well):
Example
in application code results in two aliases: one interface and one value.My proposal would be to prefix/suffix the interface with something so that the runtime value is distinct from the type interface. Perhaps just a leading
I
such that the generated file would be:This change would certainly be a breaking change so I wouldn't expect it until a major version bump. I also don't know how this would impact naming conflicts e.g. perhaps someone has
message Example {}
andmessage IExample {}
in the same file.Beta Was this translation helpful? Give feedback.
All reactions