{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14169","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14169/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14169/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14169/events","html_url":"https://github.com/JuliaLang/julia/issues/14169","id":119253472,"number":14169,"title":"Want to use `end` in `sub(...)`","user":{"login":"eschnett","id":213514,"avatar_url":"https://avatars.githubusercontent.com/u/213514?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnett","html_url":"https://github.com/eschnett","followers_url":"https://api.github.com/users/eschnett/followers","following_url":"https://api.github.com/users/eschnett/following{/other_user}","gists_url":"https://api.github.com/users/eschnett/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnett/subscriptions","organizations_url":"https://api.github.com/users/eschnett/orgs","repos_url":"https://api.github.com/users/eschnett/repos","events_url":"https://api.github.com/users/eschnett/events{/privacy}","received_events_url":"https://api.github.com/users/eschnett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T22:19:03Z","updated_at":"2015-11-27T22:23:21Z","closed_at":"2015-11-27T22:23:21Z","body":"As far as I can tell, `sub(...)` (which creates sub-array views) accepts a index arguments indices, ranges, and colons. It would be quite convenient if it also accepted `end`. This would allow writing e.g.\r\n```Julia\r\na[1:end-1] = sub(a, 2:end)\r\nb[2:end] = sub(b, 1:end-1)\r\n```\r\n\r\nIf getting this to work with `end` is too complex for the parser then I wouldn't mind using a different syntax, e.g. `:end` or `:End`. Or maybe with a completely different syntax such as `SubArray[a, 2:end]`, or `@sub(a[2:end])`."}}