{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber/issues/357","repository_url":"https://api.github.com/repos/cucumber/cucumber","labels_url":"https://api.github.com/repos/cucumber/cucumber/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber/issues/357/comments","events_url":"https://api.github.com/repos/cucumber/cucumber/issues/357/events","html_url":"https://github.com/cucumber/cucumber/pull/357","id":312721769,"number":357,"title":"Cucumber expressions: Remove single transformer","user":{"login":"aslakhellesoy","id":1000,"avatar_url":"https://avatars3.githubusercontent.com/u/1000?v=4","gravatar_id":"","url":"https://api.github.com/users/aslakhellesoy","html_url":"https://github.com/aslakhellesoy","followers_url":"https://api.github.com/users/aslakhellesoy/followers","following_url":"https://api.github.com/users/aslakhellesoy/following{/other_user}","gists_url":"https://api.github.com/users/aslakhellesoy/gists{/gist_id}","starred_url":"https://api.github.com/users/aslakhellesoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslakhellesoy/subscriptions","organizations_url":"https://api.github.com/users/aslakhellesoy/orgs","repos_url":"https://api.github.com/users/aslakhellesoy/repos","events_url":"https://api.github.com/users/aslakhellesoy/events{/privacy}","received_events_url":"https://api.github.com/users/aslakhellesoy/received_events","type":"User","site_admin":false},"labels":[{"id":419973151,"url":"https://api.github.com/repos/cucumber/cucumber/labels/library:%20cucumber-expressions","name":"library: cucumber-expressions","color":"3e10af","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-09T23:22:35Z","updated_at":"2018-04-10T00:15:15Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/cucumber/cucumber/pulls/357","html_url":"https://github.com/cucumber/cucumber/pull/357","diff_url":"https://github.com/cucumber/cucumber/pull/357.diff","patch_url":"https://github.com/cucumber/cucumber/pull/357.patch"},"body":"I didn't like the choices between `Transformer` and `Function`, so I removed `Function` (and `SingleTransformer`).\r\n\r\nMerging this will cause cucumber/cucumber#1248 to break, but since it's never been released I'm not sure we need to bump the minor release.\r\n\r\nI will have to make some minor consistency changes to Ruby and JavaScript, but I don't think it will affect behaviour externally."},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber/issues/comments/379933223","html_url":"https://github.com/cucumber/cucumber/pull/357#issuecomment-379933223","issue_url":"https://api.github.com/repos/cucumber/cucumber/issues/357","id":379933223,"user":{"login":"mpkorstanje","id":6946919,"avatar_url":"https://avatars2.githubusercontent.com/u/6946919?v=4","gravatar_id":"","url":"https://api.github.com/users/mpkorstanje","html_url":"https://github.com/mpkorstanje","followers_url":"https://api.github.com/users/mpkorstanje/followers","following_url":"https://api.github.com/users/mpkorstanje/following{/other_user}","gists_url":"https://api.github.com/users/mpkorstanje/gists{/gist_id}","starred_url":"https://api.github.com/users/mpkorstanje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpkorstanje/subscriptions","organizations_url":"https://api.github.com/users/mpkorstanje/orgs","repos_url":"https://api.github.com/users/mpkorstanje/repos","events_url":"https://api.github.com/users/mpkorstanje/events{/privacy}","received_events_url":"https://api.github.com/users/mpkorstanje/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T00:15:15Z","updated_at":"2018-04-10T00:15:15Z","author_association":"CONTRIBUTOR","body":"Ideally, when using a lambda expression, you won't notice those.  By defining the lambda as  `(String[] matches) -> ....` or `String match -> ...`. you can decide if you want to use all parameter or only the first one. I expect that most parameter types will use the whole matching making this a nice bit of sugar.\r\n\r\nThe reason we have a function class is because I had to back port this to 1.7 which doesn't support lambdas yet (but this won't prevent clients at 1.8 from using them).\r\n\r\nIn javascript you can get the same behaviour when using `transformFn.call(null, matches)`.  If the `transformFn` is defined as  `function(arg1, arg2, ... argN)` the matches will be bound to the arguments. \r\n\r\n"}}
{"actor":{"display_login":"mpkorstanje"}}