Title: Change `return` to `$result` for method return values in refinements · Issue #133 · liquid-java/liquidjava · GitHub
Open Graph Title: Change `return` to `$result` for method return values in refinements · Issue #133 · liquid-java/liquidjava
X Title: Change `return` to `$result` for method return values in refinements · Issue #133 · liquid-java/liquidjava
Description: return is a statement, and it's strange to have it as a variable to represent the return value. Therefore, we could change it for result. But since result can be an actual variable that represents something other than the return value we...
Open Graph Description: return is a statement, and it's strange to have it as a variable to represent the return value. Therefore, we could change it for result. But since result can be an actual variable that represents ...
X Description: return is a statement, and it's strange to have it as a variable to represent the return value. Therefore, we could change it for result. But since result can be an actual variable that represe...
Opengraph URL: https://github.com/liquid-java/liquidjava/issues/133
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change `return` to `$result` for method return values in refinements","articleBody":"`return` is a statement, and it's strange to have it as a variable to represent the return value.\nTherefore, we could change it for `result`. But since result can be an actual variable that represents something other than the return value we, we can try using `$result`.\n\nThis would mean a small change in the grammar, probably, and a change in replacing the return value.\nPs: the _ should still work in any case\n\nExample Before:\n```java\n@Refinement(\"return \u003e 0\") \nint test2 (){\n return 10;\n}\n```\nExample After:\n```java\n@Refinement(\"$result \u003e 0\") \nint test2 (){\n return 10;\n}\n```","author":{"url":"https://github.com/CatarinaGamboa","@type":"Person","name":"CatarinaGamboa"},"datePublished":"2025-12-10T16:35:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/133/liquidjava/issues/133"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3e6766c8-3f30-11be-acb2-425150209fc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C624:1E946E:2D347D8:3F0F85C:6A633A01 |
| html-safe-nonce | 10f841e792e650f589ca0748bbf776ffb0413ab44449c41a2056250373d07a11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjI0OjFFOTQ2RToyRDM0N0Q4OjNGMEY4NUM6NkE2MzNBMDEiLCJ2aXNpdG9yX2lkIjoiMjExMjUyNTU5NjcwMjc1MTIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d687bc33c62dd7b5896651ea9b47f70dc636012d76d6de4e798828061116264 |
| hovercard-subject-tag | issue:3715957784 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/liquid-java/liquidjava/133/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4155c64155c02a291d4738a47844139096d88e26214eed5f80fbea5bb672454b/liquid-java/liquidjava/issues/133 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4155c64155c02a291d4738a47844139096d88e26214eed5f80fbea5bb672454b/liquid-java/liquidjava/issues/133 |
| og:image:alt | return is a statement, and it's strange to have it as a variable to represent the return value. Therefore, we could change it for result. But since result can be an actual variable that represents ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CatarinaGamboa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/liquid-java/liquidjava git https://github.com/liquid-java/liquidjava.git |
| octolytics-dimension-user_id | 242831829 |
| octolytics-dimension-user_login | liquid-java |
| octolytics-dimension-repository_id | 258218369 |
| octolytics-dimension-repository_nwo | liquid-java/liquidjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 258218369 |
| octolytics-dimension-repository_network_root_nwo | liquid-java/liquidjava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width