Title: Common `-Splat` parameter · Issue #25574 · PowerShell/PowerShell · GitHub
Open Graph Title: Common `-Splat` parameter · Issue #25574 · PowerShell/PowerShell
X Title: Common `-Splat` parameter · Issue #25574 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement The proposal for inline splatting has been rejected some time ago. See: #25029: This was first proposed a long time ago: Rejected RFC: https://github.com/PowerShell/PowerShell-RFC/blob/master/Arch...
Open Graph Description: Summary of the new feature / enhancement The proposal for inline splatting has been rejected some time ago. See: #25029: This was first proposed a long time ago: Rejected RFC: https://github.com/Po...
X Description: Summary of the new feature / enhancement The proposal for inline splatting has been rejected some time ago. See: #25029: This was first proposed a long time ago: Rejected RFC: https://github.com/Po...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/25574
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Common `-Splat` parameter","articleBody":"### Summary of the new feature / enhancement\n\nThe proposal for inline splatting has been rejected some time ago.\n\nSee: https://github.com/PowerShell/PowerShell/issues/25029:\n\n\u003e This was first proposed a long time ago:\n\u003e \n\u003e Rejected RFC: https://github.com/PowerShell/PowerShell-RFC/blob/master/Archive/Draft/RFC0002-Generalized-Splatting.md\n\u003e \n\u003e Related discussion: https://github.com/PowerShell/PowerShell-RFC/issues/6\n\u003e A related PR that was therefore ultimately not accepted: https://github.com/PowerShell/PowerShell/pull/10073\n\nAs far I understand the issue behind the rejection: the discussion was meanly focused on an operator that could pass an *unnamed* argument which would require a semantic sugar in the engine that might conflict with other syntaxes or initiate a break change.\nIf the splatting could be done by means of a *common **named** parameter* (e.g. `-Splat [Object[]]`), the impact on the enige would be less and I guess easier to implement, while this would be more PowerShell compliant and support inline usage:\n\n#### Wishful thinking:\n\n```PowerShell\nNew-AzVm -Splat @{\n Name = $Name\n Location = \"West US\"\n ResourceGroupName = \"myResourceGroup\"\n VirtualNetworkName = \"myVnet\"\n SubnetName = \"mySubnet\"\n SecurityGroupName = \"myNetworkSecurityGroup\"\n PublicIpAddressName = \"myPublicIpAddress\"\n}\n```\n\n\n### Proposed technical implementation details (optional)\n\n_No response_","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2025-05-16T10:27:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/25574/PowerShell/issues/25574"}
| 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:a2ceec9a-7dc3-f8b8-cf96-6910d6318209 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C940:E786A:2D73DA:3F770A:6A57B6B0 |
| html-safe-nonce | 95143af39bd458306608be91d53bd4a4958194a14642c055a586d2b2176c10dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQwOkU3ODZBOjJENzNEQTozRjc3MEE6NkE1N0I2QjAiLCJ2aXNpdG9yX2lkIjoiMzQxMTg4MDA0NzAxMTE0OTQ4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f482867029d97e234a5f1bee5c9f9490168911d7a6b328698e8a8d7cc92c0374 |
| hovercard-subject-tag | issue:3068613204 |
| 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/PowerShell/PowerShell/25574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b4774459d3f1077aed50394d4f30cf610e590a6f68621b58a431468a0a17984d/PowerShell/PowerShell/issues/25574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b4774459d3f1077aed50394d4f30cf610e590a6f68621b58a431468a0a17984d/PowerShell/PowerShell/issues/25574 |
| og:image:alt | Summary of the new feature / enhancement The proposal for inline splatting has been rejected some time ago. See: #25029: This was first proposed a long time ago: Rejected RFC: https://github.com/Po... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 67aa73f3bba9e68b2de0ebe01c65fcd120461cba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width