-
Notifications
You must be signed in to change notification settings - Fork 375
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
Add the ability to call exposed struct methods on realm variables #1045
Comments
Absolutely loving it! We can already call exposed struct methods by making a new contract: import "gno.land/r/realmfoo"
func Bar() {
realmfoo.Baz.Lorem()
} I'm thinking of enhancing I'm also keen on grouped struct methods in generated documentation. It'll help with a structured approach for admin tasks, making it less noisy for newcomers. Just a heads up, I'm working indirectly on this in #1001. If it gets accepted, it'll cover a small part of your proposal. |
Btw, could be cool to use a single arg like Maybe for the #1017. |
Regarding issue #1042, it's essential to establish secure best practices and design patterns. For calls such as By integrating solutions like Gnoffee (#1092), we aim to maintain code readability while enhancing security. |
Description
It would be beneficial to have the ability to call exposed struct methods on realm variables. This enhancement could be particularly useful for larger realms looking to better organize and categorize their code. Coupled with indexing on the helper page (as shown here), we could come closer to adopting a documentation style similar to that of Golang.
The text was updated successfully, but these errors were encountered: