{"action":"created","issue":{"url":"https://api.github.com/repos/scala/scala/issues/6536","repository_url":"https://api.github.com/repos/scala/scala","labels_url":"https://api.github.com/repos/scala/scala/issues/6536/labels{/name}","comments_url":"https://api.github.com/repos/scala/scala/issues/6536/comments","events_url":"https://api.github.com/repos/scala/scala/issues/6536/events","html_url":"https://github.com/scala/scala/pull/6536","id":315188307,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgyMjYyMzky","number":6536,"title":"Allow main method without parameters [WIP]","user":{"login":"lrytz","id":119636,"node_id":"MDQ6VXNlcjExOTYzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/119636?v=4","gravatar_id":"","url":"https://api.github.com/users/lrytz","html_url":"https://github.com/lrytz","followers_url":"https://api.github.com/users/lrytz/followers","following_url":"https://api.github.com/users/lrytz/following{/other_user}","gists_url":"https://api.github.com/users/lrytz/gists{/gist_id}","starred_url":"https://api.github.com/users/lrytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrytz/subscriptions","organizations_url":"https://api.github.com/users/lrytz/orgs","repos_url":"https://api.github.com/users/lrytz/repos","events_url":"https://api.github.com/users/lrytz/events{/privacy}","received_events_url":"https://api.github.com/users/lrytz/received_events","type":"User","site_admin":false},"labels":[{"id":370564410,"node_id":"MDU6TGFiZWwzNzA1NjQ0MTA=","url":"https://api.github.com/repos/scala/scala/labels/WIP","name":"WIP","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/scala/scala/milestones/74","html_url":"https://github.com/scala/scala/milestone/74","labels_url":"https://api.github.com/repos/scala/scala/milestones/74/labels","id":3295287,"node_id":"MDk6TWlsZXN0b25lMzI5NTI4Nw==","number":74,"title":"2.13.0-M5","description":"Merge to 2.13.x. Last milestone. Think of it as RC0. We're in feature freeze after this release.","creator":{"login":"lrytz","id":119636,"node_id":"MDQ6VXNlcjExOTYzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/119636?v=4","gravatar_id":"","url":"https://api.github.com/users/lrytz","html_url":"https://github.com/lrytz","followers_url":"https://api.github.com/users/lrytz/followers","following_url":"https://api.github.com/users/lrytz/following{/other_user}","gists_url":"https://api.github.com/users/lrytz/gists{/gist_id}","starred_url":"https://api.github.com/users/lrytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrytz/subscriptions","organizations_url":"https://api.github.com/users/lrytz/orgs","repos_url":"https://api.github.com/users/lrytz/repos","events_url":"https://api.github.com/users/lrytz/events{/privacy}","received_events_url":"https://api.github.com/users/lrytz/received_events","type":"User","site_admin":false},"open_issues":64,"closed_issues":119,"state":"open","created_at":"2018-04-25T07:15:17Z","updated_at":"2018-06-06T17:59:25Z","due_on":"2018-08-10T07:00:00Z","closed_at":null},"comments":24,"created_at":"2018-04-17T18:56:23Z","updated_at":"2018-06-06T19:41:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/scala/scala/pulls/6536","html_url":"https://github.com/scala/scala/pull/6536","diff_url":"https://github.com/scala/scala/pull/6536.diff","patch_url":"https://github.com/scala/scala/pull/6536.patch"},"body":"Feedback welcome\r\n\r\n```\r\nobject C {\r\n  def main: Unit = {\r\n    println(\"hi\")\r\n  }\r\n}\r\n```\r\n\r\nWhen there's a main without paramters (no param list, or single empty param list), inherited or declared, and there's no inherited or declared main method with an `Array[String]` parameter, generate a main method that forwards to the user-defined one.\r\n\r\nIf we go there:\r\n  - deprecate App\r\n  - do some cleanups\r\n  - make sure jar entry points still work\r\n  - tests\r\n  - ..."},"comment":{"url":"https://api.github.com/repos/scala/scala/issues/comments/395189456","html_url":"https://github.com/scala/scala/pull/6536#issuecomment-395189456","issue_url":"https://api.github.com/repos/scala/scala/issues/6536","id":395189456,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE4OTQ1Ng==","user":{"login":"ashawley","id":358615,"node_id":"MDQ6VXNlcjM1ODYxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/358615?v=4","gravatar_id":"","url":"https://api.github.com/users/ashawley","html_url":"https://github.com/ashawley","followers_url":"https://api.github.com/users/ashawley/followers","following_url":"https://api.github.com/users/ashawley/following{/other_user}","gists_url":"https://api.github.com/users/ashawley/gists{/gist_id}","starred_url":"https://api.github.com/users/ashawley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashawley/subscriptions","organizations_url":"https://api.github.com/users/ashawley/orgs","repos_url":"https://api.github.com/users/ashawley/repos","events_url":"https://api.github.com/users/ashawley/events{/privacy}","received_events_url":"https://api.github.com/users/ashawley/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T19:41:06Z","updated_at":"2018-06-06T19:41:06Z","author_association":"MEMBER","body":"What's not clear about the proposal is whether the user gets to access `args` in a parameter-less `main`:\r\n\r\n```scala\r\nobject Main {\r\n  def main: Unit = {\r\n    args.foreach(println)  // error not found: value args\r\n  }\r\n}\r\n```\r\n\r\nI'd vote that that's not the case."}}
{"actor":{"display_login":"ashawley"}}