{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/9532","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/9532/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/9532/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/9532/events","html_url":"https://github.com/JuliaLang/julia/issues/9532","id":53214974,"number":9532,"title":"-- parses as an operator but ++ doesn't","user":{"login":"jaakkor2","id":7318249,"avatar_url":"https://avatars.githubusercontent.com/u/7318249?v=3","gravatar_id":"","url":"https://api.github.com/users/jaakkor2","html_url":"https://github.com/jaakkor2","followers_url":"https://api.github.com/users/jaakkor2/followers","following_url":"https://api.github.com/users/jaakkor2/following{/other_user}","gists_url":"https://api.github.com/users/jaakkor2/gists{/gist_id}","starred_url":"https://api.github.com/users/jaakkor2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaakkor2/subscriptions","organizations_url":"https://api.github.com/users/jaakkor2/orgs","repos_url":"https://api.github.com/users/jaakkor2/repos","events_url":"https://api.github.com/users/jaakkor2/events{/privacy}","received_events_url":"https://api.github.com/users/jaakkor2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/parser","name":"parser","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-01T07:30:42Z","updated_at":"2015-06-04T02:37:23Z","closed_at":"2015-06-04T02:37:23Z","body":"I would like to be able to write `1--2` to get `3`. Additional spaces or parenthesis are not convenient.\r\n\r\nMatlab and Python allow this.  JavaScript not, because there `++` and `--` are increment/decrement operators, but `-+` and `+-` are ok.\r\n\r\n```\r\njulia> 1++2\r\n3\r\n\r\njulia> 1-+2\r\n-1\r\n\r\njulia> 1+-2\r\n-1\r\n\r\njulia> 1--2\r\nERROR: -- not defined\r\n\r\njulia> 1- -2\r\n3\r\n\r\njulia> 1-(-2)\r\n3\r\n```"}}