Title: Remove parentheses for single parameter lambda · Issue #762 · google/google-java-format · GitHub
Open Graph Title: Remove parentheses for single parameter lambda · Issue #762 · google/google-java-format
X Title: Remove parentheses for single parameter lambda · Issue #762 · google/google-java-format
Description: I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case. It is generally considered to be a bette practice omitting parentheses for single parameter lambda, for example foo ->...
Open Graph Description: I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case. It is generally considered to be a bette practice omitting parentheses for sin...
X Description: I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case. It is generally considered to be a bette practice omitting parentheses for sin...
Opengraph URL: https://github.com/google/google-java-format/issues/762
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove parentheses for single parameter lambda","articleBody":"I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case.\r\n\r\nIt is generally considered to be a bette practice omitting parentheses for single parameter lambda, for example `foo -> ...` is better than `(foo) -> ...`, from readability perspective.\r\n\r\nI tried hacking around and could get it to work, but I had to ignore a token by adding a new method to `OpsBuilder`, so either I'm doing something wrong or this is very much against the design philosophy (respecting original input as much as possible, IIUC).\r\n\r\nCould you please help me understand whether this is a valid feature request or not? Thank you very much.","author":{"url":"https://github.com/honnix","@type":"Person","name":"honnix"},"datePublished":"2022-03-09T16:03:55Z","url":"https://github.com/google/google-java-format/issues/762"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:15043ac7-2b04-2161-3ebd-70c6e4544b15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A876:20CEDF:3A3565:4D208C:6AFBBBB0 |
| html-safe-nonce | 3e98bc507d7d7c0fa6d70f83a64dd7f67cd4a76a9506e054601e3ca806023e37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODc2OjIwQ0VERjozQTM1NjU6NEQyMDhDOjZBRkJCQkIwIiwidmlzaXRvcl9pZCI6IjM2MzU5MjY3NjY5MDk2MzU1MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b7cac8940e72344f45d96acaaa0e92afd72da903499410f04dd4f4706997b5a |
| hovercard-subject-tag | issue:1164136535 |
| 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/google/google-java-format/762/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed3227f47f2abf7950e15220f148387ee9fc6c633c2c13fc9f890b579e5ade4e/google/google-java-format/issues/762 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed3227f47f2abf7950e15220f148387ee9fc6c633c2c13fc9f890b579e5ade4e/google/google-java-format/issues/762 |
| og:image:alt | I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case. It is generally considered to be a bette practice omitting parentheses for sin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | honnix |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| 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 | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width