{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/291","labels_url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/291/comments","events_url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/291/events","html_url":"https://github.com/elm-lang/elm-lang.org/pull/291","id":81461194,"number":291,"title":"Syntax examples: Don't use (<|) as an user defined operator since it's builtin","user":{"login":"ThomasWeiser","id":3869947,"avatar_url":"https://avatars.githubusercontent.com/u/3869947?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWeiser","html_url":"https://github.com/ThomasWeiser","followers_url":"https://api.github.com/users/ThomasWeiser/followers","following_url":"https://api.github.com/users/ThomasWeiser/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWeiser/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWeiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWeiser/subscriptions","organizations_url":"https://api.github.com/users/ThomasWeiser/orgs","repos_url":"https://api.github.com/users/ThomasWeiser/repos","events_url":"https://api.github.com/users/ThomasWeiser/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWeiser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T14:05:13Z","updated_at":"2015-06-03T19:11:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elm-lang/elm-lang.org/pulls/291","html_url":"https://github.com/elm-lang/elm-lang.org/pull/291","diff_url":"https://github.com/elm-lang/elm-lang.org/pull/291.diff","patch_url":"https://github.com/elm-lang/elm-lang.org/pull/291.patch"},"body":"Syntax.elm: Use different example for defining own infix operators\r\n\r\nHitherto `<|` is used as an user defined operator. But this is a builtin operator that can't be overwritten.\r\nSo I propose to use `?` as an infix variant of Maybe.withDefault.\r\n\r\nCode for the function is taken from @evancz at https://groups.google.com/d/msg/elm-discuss/kgiM9j3Xrbw/EA9KSSqNkBYJ"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/comments/108583652","html_url":"https://github.com/elm-lang/elm-lang.org/pull/291#issuecomment-108583652","issue_url":"https://api.github.com/repos/elm-lang/elm-lang.org/issues/291","id":108583652,"user":{"login":"ThomasWeiser","id":3869947,"avatar_url":"https://avatars.githubusercontent.com/u/3869947?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWeiser","html_url":"https://github.com/ThomasWeiser","followers_url":"https://api.github.com/users/ThomasWeiser/followers","following_url":"https://api.github.com/users/ThomasWeiser/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWeiser/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWeiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWeiser/subscriptions","organizations_url":"https://api.github.com/users/ThomasWeiser/orgs","repos_url":"https://api.github.com/users/ThomasWeiser/repos","events_url":"https://api.github.com/users/ThomasWeiser/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWeiser/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T19:11:24Z","updated_at":"2015-06-03T19:11:24Z","body":"The example can be read as a custom defined infix operator. So yes, I find it confusing to see a builtin operator defined / redefined.\r\n\r\nI agree on your suggestion to use `Maybe.withDefault` in the new example operator `?`. I changed the PR to that."}}