{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3271","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3271/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3271/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3271/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/3271","id":196821501,"number":3271,"title":"Allow `Class{T}` as an alternative syntax for `Class<T>`","user":{"login":"firegurafiku","id":1611416,"avatar_url":"https://avatars.githubusercontent.com/u/1611416?v=3","gravatar_id":"","url":"https://api.github.com/users/firegurafiku","html_url":"https://github.com/firegurafiku","followers_url":"https://api.github.com/users/firegurafiku/followers","following_url":"https://api.github.com/users/firegurafiku/following{/other_user}","gists_url":"https://api.github.com/users/firegurafiku/gists{/gist_id}","starred_url":"https://api.github.com/users/firegurafiku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firegurafiku/subscriptions","organizations_url":"https://api.github.com/users/firegurafiku/orgs","repos_url":"https://api.github.com/users/firegurafiku/repos","events_url":"https://api.github.com/users/firegurafiku/events{/privacy}","received_events_url":"https://api.github.com/users/firegurafiku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-21T01:10:24Z","updated_at":"2016-12-21T01:10:24Z","closed_at":null,"body":"Looking through [C++ domain documantation][doc] I noticed the following highlighted note:\r\n\r\n> **Note on References with Templates Parameters/Arguments**  \r\n> Sphinx’s syntax to give references a custom title can interfere with linking to template classes, if nothing follows the closing angle bracket, i.e. if the link looks like this: ``:cpp:class:`MyClass<int>` ``. This is interpreted as a link to `int` with a title of `MyClass`. In this case, please escape the opening angle bracket with a backslash, like this: ``:cpp:class:`MyClass\\<int>` ``.\r\n\r\nUnfortunately, C++ is full of templates, so having to escape `<` (or, at least, worry about that) sounds like a bad news.\r\n\r\nHow about choosing different type of brackets to get rid of this issue completely? For example, curly braces are never used in (sane) function and type signatures, so it would be safe to write the above reference as ``:cpp:class:`MyClass{int}` ``. The similar approach is used by Microsoft in their C# XML comments where reference to `MyClass<T1, T2>` may be written either as `MyClass&lt;,&gt;` or `MyClass{,}`.\r\n\r\nIs something like this possible with Sphinx?\r\n\r\n[doc]: http://www.sphinx-doc.org/en/stable/domains.html"}}
{"actor":{"display_login":"firegurafiku"}}