{"action":"created","issue":{"url":"https://api.github.com/repos/libmir/mir/issues/337","repository_url":"https://api.github.com/repos/libmir/mir","labels_url":"https://api.github.com/repos/libmir/mir/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/libmir/mir/issues/337/comments","events_url":"https://api.github.com/repos/libmir/mir/issues/337/events","html_url":"https://github.com/libmir/mir/issues/337","id":176761482,"number":337,"title":"consistently accept input shape as a static array only","user":{"login":"timotheecour","id":2194784,"avatar_url":"https://avatars.githubusercontent.com/u/2194784?v=3","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libmir/mir/labels/API","name":"API","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-13T21:59:27Z","updated_at":"2016-09-17T11:06:35Z","closed_at":null,"body":"I'd like mir to consistently accept input shape argument as a static array, never as separate indexes, kind of like numpy:\r\n```\r\na=numpy.zeros((2,3))//ok\r\na=numpy.zeros(2,3)//bad\r\n```\r\n\r\nCurrently in mir this all works:\r\n```\r\n  auto a0=iota(3*4).sliced(3,4); // proposal:deprecate\r\n  auto a1=iota(3*4).sliced([3,4]);\r\n  auto a2=iotaSlice(3,4); // proposal:deprecate\r\n  auto a3=iotaSlice([3,4]);\r\n  auto a4=slice!int([3,4]);\r\n  auto a6=slice!int(3,4);// proposal:deprecate\r\n  // a bit inconsistent: only static array form is allowed when passing an extra argument\r\n  auto a7=slice([3,4],5); \r\n```\r\n\r\nSeveral reasons for changing this:\r\n* simpler interfaces when writing code\r\n* less template bloat\r\n* one obvious way is better than multiple ways (pythonic principle)\r\n* makes it possible to add more arguments after shape parameter, see example `auto a7` above\r\n* easier to pass shape as an argument when it's a static array (doesn't require tuple unpacking)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37847079-consistently-accept-input-shape-as-a-static-array-only?utm_campaign=plugin&utm_content=tracker%2F18251717&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18251717&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/libmir/mir/issues/comments/247763378","html_url":"https://github.com/libmir/mir/issues/337#issuecomment-247763378","issue_url":"https://api.github.com/repos/libmir/mir/issues/337","id":247763378,"user":{"login":"9il","id":845083,"avatar_url":"https://avatars.githubusercontent.com/u/845083?v=3","gravatar_id":"","url":"https://api.github.com/users/9il","html_url":"https://github.com/9il","followers_url":"https://api.github.com/users/9il/followers","following_url":"https://api.github.com/users/9il/following{/other_user}","gists_url":"https://api.github.com/users/9il/gists{/gist_id}","starred_url":"https://api.github.com/users/9il/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9il/subscriptions","organizations_url":"https://api.github.com/users/9il/orgs","repos_url":"https://api.github.com/users/9il/repos","events_url":"https://api.github.com/users/9il/events{/privacy}","received_events_url":"https://api.github.com/users/9il/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T11:06:35Z","updated_at":"2016-09-17T11:06:35Z","body":"Ping DCV contributors @ljubobratovicrelja @henrygouk @DmitryOlshansky. What is your opinion about this breaking change?"}}
{"actor":{"display_login":"9il"}}