{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/27","repository_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo","labels_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/27/comments","events_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/27/events","html_url":"https://github.com/cloudRoutine/issueTestRepo/issues/27","id":182446997,"number":27,"title":"Introduce array spread operator for pattern matching and [<ParamArray>]","user":{"login":"cloudRoutine","id":680051,"avatar_url":"https://avatars.githubusercontent.com/u/680051?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudRoutine","html_url":"https://github.com/cloudRoutine","followers_url":"https://api.github.com/users/cloudRoutine/followers","following_url":"https://api.github.com/users/cloudRoutine/following{/other_user}","gists_url":"https://api.github.com/users/cloudRoutine/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudRoutine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudRoutine/subscriptions","organizations_url":"https://api.github.com/users/cloudRoutine/orgs","repos_url":"https://api.github.com/users/cloudRoutine/repos","events_url":"https://api.github.com/users/cloudRoutine/events{/privacy}","received_events_url":"https://api.github.com/users/cloudRoutine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/labels/declined","name":"declined","color":"171819"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T06:39:10Z","updated_at":"2016-10-12T10:13:16Z","closed_at":"2016-10-12T10:13:16Z","body":"# Idea 11462964: Introduce array spread operator for pattern matching and [<ParamArray>] #\n\n**Status : declined**  \n**Submitted by Ryan Riley on 1/15/2016 12:00:00 AM**  \n**18 votes**\n\nSeveral languages have introduced a handy spread operator, ..., that can be used to pick up remaining arguments to a function call or when destructuring values. [1] This would be incredibly helpful in F# to reduce boilerplate in methods accepting a [<ParamArray>] or when trying to pattern match arrays:\r\nmatch [|1;2;3;4|] with\r\n| [||] -> // do stuff with empty array\r\n| [|hd;…tl|] -> // do stuff with hd/tl\r\n[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator\n\n\n\n## Response \n** by fslang-admin on 2/3/2016 12:00:00 AM **\n\nDeclined per my comment below. We would not extend pattern matching for this one case, but Rick is right that improvements to active patterns may make sense\r\nDon Syme, F# Language Evolution\n[Archived Uservoice Comments](../tree/master/archive/suggestion-11462964-introduce-array-spread-operator-for-pattern-match.md#comments)\n"}}
{"actor":{"display_login":"cloudRoutine"}}