-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
compiler: add option @generated=omit
#11086
Conversation
c0aaad9
to
89f8bd8
Compare
@panchenko is this backwards compatible, as people are already using this? |
It doesn't look like it to me |
The option with an unclear name has been released just a few days ago, it can be discussed if it's worth keeping it compatible, personally I don't think so. |
@panchenko - even so, you have examples of people already using it in the thread, and many others who got notified on several email threads (not just this repo) about the issue being closed (and reopened). besides that on merit, the name jakarta makes more sense as this is what new programmers are coming in learning about. the name javax doesn't mean anything anymore, jakarta_include (which is unlikely to be implemented but one can hope), jakarta_omit, and jakarta_javax make sense, but including = does not because these are not key value pairs, they are really just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. I also wasn't wild about the option name and delayed string checking before.
I have some concern of using @
at the beginning of an option, as @filename
is special in protoc and elsewhere. But it looks like it'd be fine.
I'm not too worried about backward compatibility because the users setting this are also in control of the protoc-gen-grpc version. It's also only been around a single release.
The chance we ever use the Jakarta classes here is close to 0%.
It is literally in the package name for the class. And that's also only because you are aware of what is and is not part of Jakarta. javax itself is still very much alive: javax.crypto, javax.net, javax.xml....
That is identical to saying a command line argument |
@generated=omit
related to #11081