{"action":"created","issue":{"url":"https://api.github.com/repos/gracelang/language/issues/17","repository_url":"https://api.github.com/repos/gracelang/language","labels_url":"https://api.github.com/repos/gracelang/language/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/gracelang/language/issues/17/comments","events_url":"https://api.github.com/repos/gracelang/language/issues/17/events","html_url":"https://github.com/gracelang/language/issues/17","id":98984544,"number":17,"title":"Stand-alone brackets should be operators","user":{"login":"apblack","id":410893,"avatar_url":"https://avatars.githubusercontent.com/u/410893?v=3","gravatar_id":"","url":"https://api.github.com/users/apblack","html_url":"https://github.com/apblack","followers_url":"https://api.github.com/users/apblack/followers","following_url":"https://api.github.com/users/apblack/following{/other_user}","gists_url":"https://api.github.com/users/apblack/gists{/gist_id}","starred_url":"https://api.github.com/users/apblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apblack/subscriptions","organizations_url":"https://api.github.com/users/apblack/orgs","repos_url":"https://api.github.com/users/apblack/repos","events_url":"https://api.github.com/users/apblack/events{/privacy}","received_events_url":"https://api.github.com/users/apblack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gracelang/language/labels/design","name":"design","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-04T14:33:14Z","updated_at":"2016-02-13T20:04:17Z","closed_at":null,"body":"Currently, `foo.[…]` is a method-request on the object named by `foo`, and can be re-defined, but in _minigrace_ `[…]` as a stand-alone expression invokes a built-in way of generating a built-in list.  It's not part of the Grace language, but my students see it and get confused.  It is certainly more elegant than `list.with(…)`\r\n\r\nI propose that stand-alone `[…]` be brought into the language.  It should mean `self[…]` or `outer[…]`, just like any other recieverless-request.  It can thus be defined in the prelude and re-defined in any dialect.\r\n\r\nWhile we are doing this for `[…]`, we may as well allow it for any other pair of matching brackets (except  for `{}` and `()`, which are already taken, and `‹›`, which minigrace has appropriated for non-interpolated multi-line strings). "},"comment":{"url":"https://api.github.com/repos/gracelang/language/issues/comments/183745481","html_url":"https://github.com/gracelang/language/issues/17#issuecomment-183745481","issue_url":"https://api.github.com/repos/gracelang/language/issues/17","id":183745481,"user":{"login":"apblack","id":410893,"avatar_url":"https://avatars.githubusercontent.com/u/410893?v=3","gravatar_id":"","url":"https://api.github.com/users/apblack","html_url":"https://github.com/apblack","followers_url":"https://api.github.com/users/apblack/followers","following_url":"https://api.github.com/users/apblack/following{/other_user}","gists_url":"https://api.github.com/users/apblack/gists{/gist_id}","starred_url":"https://api.github.com/users/apblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apblack/subscriptions","organizations_url":"https://api.github.com/users/apblack/orgs","repos_url":"https://api.github.com/users/apblack/repos","events_url":"https://api.github.com/users/apblack/events{/privacy}","received_events_url":"https://api.github.com/users/apblack/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T20:04:17Z","updated_at":"2016-02-13T20:04:17Z","body":"`[ _ ]` is already an operator.  (It's also used to denote a lineup, but that's irrelevant for this issue, I believe.)  \r\n\r\nThis issue is about allowing _other_ bracket paris to be operators.  For example, `⟨_⟩`, and `⎣_⎦`.  Since all of the ASCII brackets are already accounted for, all of the pairs concerned are not ASCII.  So I imagine they Mr ASR-33 will hate this idea."}}