{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/solidity/pulls/comments/201962302","pull_request_review_id":136563213,"id":201962302,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTk2MjMwMg==","diff_hunk":"@@ -608,6 +607,24 @@ number of bytes, always use one of ``bytes1`` to ``bytes32`` because they are mu\n     that you are accessing the low-level bytes of the UTF-8 representation,\n     and not the individual characters!\n \n+You can initialize an array inline using syntax such as ``string[] myarray = [\"a\", \"b\"];``. However, this only works for statically sized memory arrays. For example.\n+\n+::\n+\n+    pragma solidity ^0.4.16;\n+\n+    contract C {\n+        function f() public pure returns (uint8[5]) {\n+            string[4] memory adaArr = [\"This\", \"is\", \"an\", \"array\"];\n+            return ([1, 2, 3, 4, 5]);\n+        }\n+    }\n+\n+You can create and initialize multi-dimensional arrays in the same ways, but note that filling arrays can cost a lot of gas, so make sure you optimize how you use them.\n+\n+...note::\n+    Optimizing storage access can reduce the gas costs considerably, because you can store 32 ``uint8`` values in a single slot. These optimizations do not work across loops and also have a problem with bounds checking.","path":"docs/types.rst","position":null,"original_position":63,"commit_id":"16f6a1536c629da7936935c83b6f765b77f47f3c","original_commit_id":"e7c89b82991a7847ce09f9388bfd92bce544df60","user":{"login":"ChrisChinchilla","id":42080,"node_id":"MDQ6VXNlcjQyMDgw","avatar_url":"https://avatars2.githubusercontent.com/u/42080?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisChinchilla","html_url":"https://github.com/ChrisChinchilla","followers_url":"https://api.github.com/users/ChrisChinchilla/followers","following_url":"https://api.github.com/users/ChrisChinchilla/following{/other_user}","gists_url":"https://api.github.com/users/ChrisChinchilla/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisChinchilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisChinchilla/subscriptions","organizations_url":"https://api.github.com/users/ChrisChinchilla/orgs","repos_url":"https://api.github.com/users/ChrisChinchilla/repos","events_url":"https://api.github.com/users/ChrisChinchilla/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisChinchilla/received_events","type":"User","site_admin":false},"body":"@chriseth OK, I'm going to stash this idea for now for future discussion.","created_at":"2018-07-12T09:08:02Z","updated_at":"2018-07-12T09:08:02Z","html_url":"https://github.com/ethereum/solidity/pull/4420#discussion_r201962302","pull_request_url":"https://api.github.com/repos/ethereum/solidity/pulls/4420","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/comments/201962302"},"html":{"href":"https://github.com/ethereum/solidity/pull/4420#discussion_r201962302"},"pull_request":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/4420"}},"in_reply_to_id":200081698},"pull_request":{"url":"https://api.github.com/repos/ethereum/solidity/pulls/4420","id":199180055,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTgwMDU1","html_url":"https://github.com/ethereum/solidity/pull/4420","diff_url":"https://github.com/ethereum/solidity/pull/4420.diff","patch_url":"https://github.com/ethereum/solidity/pull/4420.patch","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/4420","number":4420,"state":"open","locked":false,"title":"First pass at moving FAQs to better locations","user":{"login":"ChrisChinchilla","id":42080,"node_id":"MDQ6VXNlcjQyMDgw","avatar_url":"https://avatars2.githubusercontent.com/u/42080?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisChinchilla","html_url":"https://github.com/ChrisChinchilla","followers_url":"https://api.github.com/users/ChrisChinchilla/followers","following_url":"https://api.github.com/users/ChrisChinchilla/following{/other_user}","gists_url":"https://api.github.com/users/ChrisChinchilla/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisChinchilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisChinchilla/subscriptions","organizations_url":"https://api.github.com/users/ChrisChinchilla/orgs","repos_url":"https://api.github.com/users/ChrisChinchilla/repos","events_url":"https://api.github.com/users/ChrisChinchilla/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisChinchilla/received_events","type":"User","site_admin":false},"body":"Progress on https://github.com/ethereum/solidity/issues/1219 also closes https://github.com/ethereum/solidity/issues/4339 as content is restructured.\r\n\r\nI improved some grammar and typos as I merged, but not the entirety of a document, which I'll do later. I haven't reformatted to the 99 char limit as a lot of the exisiting lines already broke that, again maybe a later PR.\r\n\r\nSpoke with @chriseth and I had already started working on this intending to create a PR for the whole task, I can break this up into smaller PRs if really needed, and from now on I will do that, which will mean a lot of small PRs to close #1219.\r\n\r\nFirst PR, so I'm sure there's something else that's not quite right :)","created_at":"2018-07-04T08:50:46Z","updated_at":"2018-07-12T09:08:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[{"login":"axic","id":20340,"node_id":"MDQ6VXNlcjIwMzQw","avatar_url":"https://avatars3.githubusercontent.com/u/20340?v=4","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/solidity/pulls/4420/commits","review_comments_url":"https://api.github.com/repos/ethereum/solidity/pulls/4420/comments","review_comment_url":"https://api.github.com/repos/ethereum/solidity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/4420/comments","statuses_url":"https://api.github.com/repos/ethereum/solidity/statuses/16f6a1536c629da7936935c83b6f765b77f47f3c","head":{"label":"ethereum:faq-reorg","ref":"faq-reorg","sha":"16f6a1536c629da7936935c83b6f765b77f47f3c","user":{"login":"ethereum","id":6250754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNTA3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6250754?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":40892817,"node_id":"MDEwOlJlcG9zaXRvcnk0MDg5MjgxNw==","name":"solidity","full_name":"ethereum/solidity","owner":{"login":"ethereum","id":6250754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNTA3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6250754?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/solidity","description":"Solidity, the Contract-Oriented Programming Language","fork":false,"url":"https://api.github.com/repos/ethereum/solidity","forks_url":"https://api.github.com/repos/ethereum/solidity/forks","keys_url":"https://api.github.com/repos/ethereum/solidity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/solidity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/solidity/teams","hooks_url":"https://api.github.com/repos/ethereum/solidity/hooks","issue_events_url":"https://api.github.com/repos/ethereum/solidity/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/solidity/events","assignees_url":"https://api.github.com/repos/ethereum/solidity/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/solidity/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/solidity/tags","blobs_url":"https://api.github.com/repos/ethereum/solidity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/solidity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/solidity/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/solidity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/solidity/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/solidity/languages","stargazers_url":"https://api.github.com/repos/ethereum/solidity/stargazers","contributors_url":"https://api.github.com/repos/ethereum/solidity/contributors","subscribers_url":"https://api.github.com/repos/ethereum/solidity/subscribers","subscription_url":"https://api.github.com/repos/ethereum/solidity/subscription","commits_url":"https://api.github.com/repos/ethereum/solidity/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/solidity/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/solidity/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/solidity/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/solidity/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/solidity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/solidity/merges","archive_url":"https://api.github.com/repos/ethereum/solidity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/solidity/downloads","issues_url":"https://api.github.com/repos/ethereum/solidity/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/solidity/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/solidity/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/solidity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/solidity/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/solidity/releases{/id}","deployments_url":"https://api.github.com/repos/ethereum/solidity/deployments","created_at":"2015-08-17T12:27:26Z","updated_at":"2018-07-12T09:04:56Z","pushed_at":"2018-07-12T09:04:39Z","git_url":"git://github.com/ethereum/solidity.git","ssh_url":"git@github.com:ethereum/solidity.git","clone_url":"https://github.com/ethereum/solidity.git","svn_url":"https://github.com/ethereum/solidity","homepage":"https://solidity.readthedocs.io","size":20764,"stargazers_count":5450,"watchers_count":5450,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1424,"mirror_url":null,"archived":false,"open_issues_count":613,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1424,"open_issues":613,"watchers":5450,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"533d5d4b1cc4374decc704de8c86ad4cef6214fc","user":{"login":"ethereum","id":6250754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNTA3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6250754?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":40892817,"node_id":"MDEwOlJlcG9zaXRvcnk0MDg5MjgxNw==","name":"solidity","full_name":"ethereum/solidity","owner":{"login":"ethereum","id":6250754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNTA3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6250754?v=4","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/solidity","description":"Solidity, the Contract-Oriented Programming Language","fork":false,"url":"https://api.github.com/repos/ethereum/solidity","forks_url":"https://api.github.com/repos/ethereum/solidity/forks","keys_url":"https://api.github.com/repos/ethereum/solidity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/solidity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/solidity/teams","hooks_url":"https://api.github.com/repos/ethereum/solidity/hooks","issue_events_url":"https://api.github.com/repos/ethereum/solidity/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/solidity/events","assignees_url":"https://api.github.com/repos/ethereum/solidity/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/solidity/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/solidity/tags","blobs_url":"https://api.github.com/repos/ethereum/solidity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/solidity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/solidity/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/solidity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/solidity/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/solidity/languages","stargazers_url":"https://api.github.com/repos/ethereum/solidity/stargazers","contributors_url":"https://api.github.com/repos/ethereum/solidity/contributors","subscribers_url":"https://api.github.com/repos/ethereum/solidity/subscribers","subscription_url":"https://api.github.com/repos/ethereum/solidity/subscription","commits_url":"https://api.github.com/repos/ethereum/solidity/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/solidity/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/solidity/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/solidity/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/solidity/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/solidity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/solidity/merges","archive_url":"https://api.github.com/repos/ethereum/solidity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/solidity/downloads","issues_url":"https://api.github.com/repos/ethereum/solidity/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/solidity/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/solidity/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/solidity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/solidity/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/solidity/releases{/id}","deployments_url":"https://api.github.com/repos/ethereum/solidity/deployments","created_at":"2015-08-17T12:27:26Z","updated_at":"2018-07-12T09:04:56Z","pushed_at":"2018-07-12T09:04:39Z","git_url":"git://github.com/ethereum/solidity.git","ssh_url":"git@github.com:ethereum/solidity.git","clone_url":"https://github.com/ethereum/solidity.git","svn_url":"https://github.com/ethereum/solidity","homepage":"https://solidity.readthedocs.io","size":20764,"stargazers_count":5450,"watchers_count":5450,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1424,"mirror_url":null,"archived":false,"open_issues_count":613,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1424,"open_issues":613,"watchers":5450,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/4420"},"html":{"href":"https://github.com/ethereum/solidity/pull/4420"},"issue":{"href":"https://api.github.com/repos/ethereum/solidity/issues/4420"},"comments":{"href":"https://api.github.com/repos/ethereum/solidity/issues/4420/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/4420/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/solidity/pulls/4420/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/solidity/statuses/16f6a1536c629da7936935c83b6f765b77f47f3c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ChrisChinchilla"}}