GitHub PullRequestReviewCommentEvent at 2014-01-09 03:17:59
Repository: hy
Actor: olasd
Payload: {"comment":{"url":"https://api.github.com/repos/hylang/hy/pulls/comments/8746584","id":8746584,"diff_hunk":"@@ -38,6 +38,37 @@ Hy features a number special forms that are used to help generate\n correct Python AST. The following are \"special\" forms, which may have\n behavior that's slightly unexpected in some situations.\n \n+.\n+-\n+\n+.. versionadded:: 0.9.13\n+\n+\n+`.` is used to perform attribute access on objects. It uses a small DSL\n+to allow quick access to attributes and items in a nested datastructure.\n+\n+For instance,\n+\n+.. code-block:: clj\n+\n+    (. foo bar baz [(+ 1 2)] frob)\n+\n+Compiles down to\n+\n+.. code-block:: python\n+\n+     foo.bar.baz[1 + 2].frob\n+\n+`.` compiles its first argument (in the example, `foo`) as the object on\n+which to do the attribute dereference. It uses bare symbols as\n+attributes to access (in the example, `bar`, `baz`, `frob`), and\n+compiles the contents of lists (in the example, `[(+ 1 2)]`) for\n+indexation. Other arguments throw a compilation error.\n+\n+Access to unknown attributes throws an `AttributeError`. Access to\n+unknown keys throws an `IndexError` (on lists) or a `KeyError` (on","path":"docs/language/api.rst","position":32,"original_position":32,"commit_id":"8b8c7bcf624b42cd2c4f4e5e4431970c414c0ba6","original_commit_id":"8b8c7bcf624b42cd2c4f4e5e4431970c414c0ba6","user":{"login":"olasd","id":12877,"avatar_url":"https://gravatar.com/avatar/72d4dd95277094771f97798c8d330518?d=https%3A%2F%2Fidenticons.github.com%2F06d77b5b9334a3747200e0e617cb73d5.png&r=x","gravatar_id":"72d4dd95277094771f97798c8d330518","url":"https://api.github.com/users/olasd","html_url":"https://github.com/olasd","followers_url":"https://api.github.com/users/olasd/followers","following_url":"https://api.github.com/users/olasd/following{/other_user}","gists_url":"https://api.github.com/users/olasd/gists{/gist_id}","starred_url":"https://api.github.com/users/olasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olasd/subscriptions","organizations_url":"https://api.github.com/users/olasd/orgs","repos_url":"https://api.github.com/users/olasd/repos","events_url":"https://api.github.com/users/olasd/events{/privacy}","received_events_url":"https://api.github.com/users/olasd/received_events","type":"User","site_admin":false},"body":"While you're right, I pretty much mirrored the language from the definition of `get` below.","created_at":"2014-01-09T03:17:59Z","updated_at":"2014-01-09T03:17:59Z","html_url":"https://github.com/hylang/hy/pull/423#discussion_r8746584","pull_request_url":"https://api.github.com/repos/hylang/hy/pulls/423","_links":{"self":{"href":"https://api.github.com/repos/hylang/hy/pulls/comments/8746584"},"html":{"href":"https://github.com/hylang/hy/pull/423#discussion_r8746584"},"pull_request":{"href":"https://api.github.com/repos/hylang/hy/pulls/423"}}}}