{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/27097","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/27097/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/27097/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/27097/events","html_url":"https://github.com/JuliaLang/julia/issues/27097","id":322934162,"number":27097,"title":"Linspace without endpoints","user":{"login":"antoine-levitt","id":88065,"avatar_url":"https://avatars2.githubusercontent.com/u/88065?v=4","gravatar_id":"","url":"https://api.github.com/users/antoine-levitt","html_url":"https://github.com/antoine-levitt","followers_url":"https://api.github.com/users/antoine-levitt/followers","following_url":"https://api.github.com/users/antoine-levitt/following{/other_user}","gists_url":"https://api.github.com/users/antoine-levitt/gists{/gist_id}","starred_url":"https://api.github.com/users/antoine-levitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoine-levitt/subscriptions","organizations_url":"https://api.github.com/users/antoine-levitt/orgs","repos_url":"https://api.github.com/users/antoine-levitt/repos","events_url":"https://api.github.com/users/antoine-levitt/events{/privacy}","received_events_url":"https://api.github.com/users/antoine-levitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-14T18:41:01Z","updated_at":"2018-05-14T18:58:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It would be very useful to have a variant of linspace that does not hit its endpoints: linspace(a,b,endpoint=false) rather than a:(b-a)/N:b-(b-a)/N and having to worry about reading it later, getting the math wrong, round-off errors maybe not giving me exactly N points, and evaluating a and b more than once. A typical use-case is representing periodic signals. Bonus points for inclusion/exclusion of left, right and both endpoints. With the new `range`-based linspace (https://github.com/JuliaLang/julia/pull/25896) the API would be a bit more awkward, but still worth it I think.\r\n\r\nRequested for instance here https://discourse.julialang.org/t/proposal-of-numpy-like-endpoint-option-for-linspace/6916"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/388925790","html_url":"https://github.com/JuliaLang/julia/issues/27097#issuecomment-388925790","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/27097","id":388925790,"user":{"login":"mbauman","id":154641,"avatar_url":"https://avatars0.githubusercontent.com/u/154641?v=4","gravatar_id":"","url":"https://api.github.com/users/mbauman","html_url":"https://github.com/mbauman","followers_url":"https://api.github.com/users/mbauman/followers","following_url":"https://api.github.com/users/mbauman/following{/other_user}","gists_url":"https://api.github.com/users/mbauman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauman/subscriptions","organizations_url":"https://api.github.com/users/mbauman/orgs","repos_url":"https://api.github.com/users/mbauman/repos","events_url":"https://api.github.com/users/mbauman/events{/privacy}","received_events_url":"https://api.github.com/users/mbauman/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T18:58:21Z","updated_at":"2018-05-14T18:58:21Z","author_association":"MEMBER","body":"As one of the examples in that thread showed, the easier/safer workaround here is:\r\n```julia\r\nrange(a, stop=b, length=N+2)[2:end-1]\r\n```\r\n\r\nI still think I prefer that over another keyword argument."}}
{"actor":{"display_login":"mbauman"}}