{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1579","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1579/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1579/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1579/events","html_url":"https://github.com/rust-lang/rfcs/issues/1579","id":148048574,"number":1579,"title":"Infix notation for function call / invocation.","user":{"login":"Centril","id":855702,"avatar_url":"https://avatars2.githubusercontent.com/u/855702?v=4","gravatar_id":"","url":"https://api.github.com/users/Centril","html_url":"https://github.com/Centril","followers_url":"https://api.github.com/users/Centril/followers","following_url":"https://api.github.com/users/Centril/following{/other_user}","gists_url":"https://api.github.com/users/Centril/gists{/gist_id}","starred_url":"https://api.github.com/users/Centril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Centril/subscriptions","organizations_url":"https://api.github.com/users/Centril/orgs","repos_url":"https://api.github.com/users/Centril/repos","events_url":"https://api.github.com/users/Centril/events{/privacy}","received_events_url":"https://api.github.com/users/Centril/received_events","type":"User","site_admin":false},"labels":[{"id":211667886,"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":63,"created_at":"2016-04-13T12:45:53Z","updated_at":"2018-05-02T20:08:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"There doesn't seem to be much support for supporting custom operators (see #818) in Rust. But what about calling normal binary functions as if they were operators, like haskell allows you to?\n\nThe syntax would be:\n\n``` haskell\na `dot` b\n```\n\nto convey scalar product of two vectors a and b.\n\nAnother option suggested by @bluss:\n\n```\na \\dot b\n```\n\nOr if it possible without parsing conflicts (_@thepowersgang: \"but probably not dersirable\"_):\n\n``` haskell\na dot b\n```\n\nWhich is converted to\n\n``` rust\na.dot( b )\n```\n\nor, depending on the function:\n\n``` rust\ndot( a, b )\n```\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/386104609","html_url":"https://github.com/rust-lang/rfcs/issues/1579#issuecomment-386104609","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1579","id":386104609,"user":{"login":"Lokathor","id":5456384,"avatar_url":"https://avatars3.githubusercontent.com/u/5456384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lokathor","html_url":"https://github.com/Lokathor","followers_url":"https://api.github.com/users/Lokathor/followers","following_url":"https://api.github.com/users/Lokathor/following{/other_user}","gists_url":"https://api.github.com/users/Lokathor/gists{/gist_id}","starred_url":"https://api.github.com/users/Lokathor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lokathor/subscriptions","organizations_url":"https://api.github.com/users/Lokathor/orgs","repos_url":"https://api.github.com/users/Lokathor/repos","events_url":"https://api.github.com/users/Lokathor/events{/privacy}","received_events_url":"https://api.github.com/users/Lokathor/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T20:08:41Z","updated_at":"2018-05-02T20:08:41Z","author_association":"NONE","body":"@burdges but... Rust _isn't_ a curried ML language? I'm not sure how any of your statements would apply to Rust. I'm not even sure how most of them would apply to Haskell. In Haskell, you can only make a prefix function into an infix operator if it's a single binding anyway:\r\n\r\n```\r\n> addMul 4 5 6\r\n54\r\n\r\n> 5 `addMul 4` 6\r\n<interactive>:6:11: error: parse error on input ‘4’\r\n\r\n> let withFour = addMul 4\r\n> 5 `withFour` 6\r\n54\r\n```"}}
{"actor":{"display_login":"Lokathor"}}