-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proposal: plugin: add Syms method #52513
Comments
What might be more likely is a |
Oh, i really would like to have access to this kind of data XD. Is it possible for someone to make this change in this package? I'm quite a noob when it comes to the github issue system, this is the first one I open, by the way. |
Exporting the field isn't likely, for several reasons, but one of the biggest is that it would then become mutable. Even if you had a method that just returned it, such as All of that being said, I'm not a maintainer. While I, obviously, think that I'm right about all of this, it's ultimately up to the actual project maintainers. |
Yeah, you are right, thanks for the correction. I think so that your suggestion of a function that return the map keys is what should be some nice method to be added on the Plugin struct. Thanks, again S2 |
Hello.
I would like to suggest a tiny change on the plugin package.
The Plugin struct have a field called syms, that holds all exported variable or function names. It's safe for concurrent too. But, we can't access this field when using the Plugin struct, and would be useful to use that map, e.g in the case of a programs that wants to list to the user all the functions that a plugin exports.
So, my suggestion is to turn the field syms to Syms, so we can use when import the plugin package.
The text was updated successfully, but these errors were encountered: