{"action":"created","comment":{"url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/comments/62511253","id":62511253,"diff_hunk":"@@ -0,0 +1,162 @@\n+# Lambda Declare\n+\n+## Overview\n+GLS will support declaring lambda functions. In order to declare a function that takes a lambda function as a parameter, the lambda must first be declared.\n+\n+## Commands\n+\n+### `lambda declare`\n+`lambda declare : lambdaTypeName lambdaFunctionName returnType *`[parameterName parameterType ...]`*\n+\n+## Usage:\n+\n+```gls\n+lambda declare : over21 check boolean age int\n+```\n+\n+### CSharp:\n+```CSharp\n+delegate bool Over21(int age);\n+```\n+\n+### Java:  \n+```Java\n+interface Over21 {\n+    boolean check(int age);\n+}\n+```\n+\n+### Python:\n+Python does not require declaring lambdas.\n+\n+### Ruby:\n+Ruby does not require declaring lambdas.\n+\n+### TypeScript\n+```TypeScript\n+interface IOver21 {\n+    (int age) : bool;\n+}\n+```\n+\n+## Implementation\n+\n+### Properties\n+\n+Properties will be stored in langauge.properties.lambdas. The following properties will be added.\n+\n+<table>\n+    <thead>\n+        <th>Property Name</th>\n+        <th>Type</th>\n+        <th>Description</th>\n+    </thead>\n+    <tbody>\n+        <tr>\n+            <td>requiresDeclaration</td>\n+            <td>boolean</td>\n+            <td>True if the language requires lambda declarations.</td>\n+        </tr>\n+        <tr>\n+            <td>declareStart</td>\n+            <td>string</td>\n+            <td>The start of a lambda declaration.</td>\n+        </tr>\n+        <tr>\n+            <td>declareMiddle</td>\n+            <td>string</td>\n+            <td>The middle of a lambda declaration.</td>\n+        </tr>\n+        <tr>\n+            <td>declareEnd</td>\n+            <td>string</td>\n+            <td>The end of a lambda declaration.</td>\n+        </tr>\n+        <tr>\n+            <td>lambdaDeclareAsInterface</td>\n+            <td>boolean</td>\n+            <td>True if the language requires declaring lambdas with an enclosing interface, false otherwise.</td>\n+        </tr>\n+        <tr>\n+            <td>requiresFunctionName</td>\n+            <td>boolean</td>\n+            <td>True if the language requires a lambda function name within the declaration, false otherwise.</td>\n+        </tr>\n+    </tbody>\n+</table>\n+\n+### Language Values\n+\n+<table>\n+    <thead>\n+        <th></th>\n+        <th>requiresDeclaration</th>\n+        <th>declareStart</th>\n+        <th>declareMiddle</th>\n+        <th>declareEnd</th>\n+        <th>lambdaDeclareAsInterface</th>\n+        <th>requiresFunctionName</th>\n+    </thead>\n+    <tbody>\n+        <tr>\n+            <th>Python</th>\n+            <td>`false`</td>\n+            <td>`\"\"`</td>\n+            <td>`\"\"`</td>\n+            <td>`\"\"`</td>\n+            <td>`false`</td>\n+            <td>`false`</td>\n+        </tr>\n+        <tr>\n+            <th>Java</th>\n+            <td>`true`</td>\n+            <td>`\"interface \"`</td>\n+            <td>`\" {\\n\"`</td>\n+            <td>`\"\\n}\"`</td>\n+            <td>`true`</td>\n+            <td>`true`</td>\n+        </tr>\n+        <tr>\n+            <th>Ruby</th>\n+            <td>`false`</td>\n+            <td>`\"\"`</td>\n+            <td>`\"\"`</td>\n+            <td>`\"\"`</td>\n+            <td>`false`</td>\n+            <td>`false`</td>\n+        </tr>\n+        <tr>\n+            <th>CSharp</th>\n+            <td>`true`</td>\n+            <td>`delegate `</td>\n+            <td>`\"\"`</td>\n+            <td>`\"\"`</td>\n+            <td>`true`</td>\n+            <td>`true`</td>\n+        </tr>\n+        <tr>\n+            <th>TypeScript</th>\n+            <td>``</td>\n+            <td>``</td>\n+            <td>``</td>\n+            <td>``</td>\n+            <td>``</td>\n+        </tr>\n+    <tbody>\n+</table>\n+\n+### Tests\n+\n+Dimensions:\n+* Return type\n+    * void\n+    * int\n+    * string\n+* Number of parameters\n+    * none\n+    * one\n+    * two\n+\n+### Errata\n+\n+* Python and Ruby do not require lambdas to be declared; in those languages `lambda declare` will be equivalent to a no-op","path":"Documentation/Design/Lambdas/Lambda Declare.md","position":162,"original_position":162,"commit_id":"f8c59f75ddf7526a4e71036a88bd6b08cddfb892","original_commit_id":"f8c59f75ddf7526a4e71036a88bd6b08cddfb892","user":{"login":"JoshuaKGoldberg","id":3335181,"avatar_url":"https://avatars.githubusercontent.com/u/3335181?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"body":"Missing period.","created_at":"2016-05-09T14:50:36Z","updated_at":"2016-05-09T14:50:36Z","html_url":"https://github.com/HighSchoolHacking/GLS/pull/88#discussion_r62511253","pull_request_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/comments/62511253"},"html":{"href":"https://github.com/HighSchoolHacking/GLS/pull/88#discussion_r62511253"},"pull_request":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88","id":69312852,"html_url":"https://github.com/HighSchoolHacking/GLS/pull/88","diff_url":"https://github.com/HighSchoolHacking/GLS/pull/88.diff","patch_url":"https://github.com/HighSchoolHacking/GLS/pull/88.patch","issue_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/88","number":88,"state":"open","locked":false,"title":"Lambda Declare for realz","user":{"login":"faulda","id":7134937,"avatar_url":"https://avatars.githubusercontent.com/u/7134937?v=3","gravatar_id":"","url":"https://api.github.com/users/faulda","html_url":"https://github.com/faulda","followers_url":"https://api.github.com/users/faulda/followers","following_url":"https://api.github.com/users/faulda/following{/other_user}","gists_url":"https://api.github.com/users/faulda/gists{/gist_id}","starred_url":"https://api.github.com/users/faulda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faulda/subscriptions","organizations_url":"https://api.github.com/users/faulda/orgs","repos_url":"https://api.github.com/users/faulda/repos","events_url":"https://api.github.com/users/faulda/events{/privacy}","received_events_url":"https://api.github.com/users/faulda/received_events","type":"User","site_admin":false},"body":"Still needs to wait for #34 ","created_at":"2016-05-09T08:48:52Z","updated_at":"2016-05-09T14:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c56a6392d93ed5d0dc826cb07ef76b8db7a2116a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88/commits","review_comments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88/comments","review_comment_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/88/comments","statuses_url":"https://api.github.com/repos/HighSchoolHacking/GLS/statuses/f8c59f75ddf7526a4e71036a88bd6b08cddfb892","head":{"label":"HighSchoolHacking:lambda_declare","ref":"lambda_declare","sha":"f8c59f75ddf7526a4e71036a88bd6b08cddfb892","user":{"login":"HighSchoolHacking","id":13475666,"avatar_url":"https://avatars.githubusercontent.com/u/13475666?v=3","gravatar_id":"","url":"https://api.github.com/users/HighSchoolHacking","html_url":"https://github.com/HighSchoolHacking","followers_url":"https://api.github.com/users/HighSchoolHacking/followers","following_url":"https://api.github.com/users/HighSchoolHacking/following{/other_user}","gists_url":"https://api.github.com/users/HighSchoolHacking/gists{/gist_id}","starred_url":"https://api.github.com/users/HighSchoolHacking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HighSchoolHacking/subscriptions","organizations_url":"https://api.github.com/users/HighSchoolHacking/orgs","repos_url":"https://api.github.com/users/HighSchoolHacking/repos","events_url":"https://api.github.com/users/HighSchoolHacking/events{/privacy}","received_events_url":"https://api.github.com/users/HighSchoolHacking/received_events","type":"Organization","site_admin":false},"repo":{"id":54209416,"name":"GLS","full_name":"HighSchoolHacking/GLS","owner":{"login":"HighSchoolHacking","id":13475666,"avatar_url":"https://avatars.githubusercontent.com/u/13475666?v=3","gravatar_id":"","url":"https://api.github.com/users/HighSchoolHacking","html_url":"https://github.com/HighSchoolHacking","followers_url":"https://api.github.com/users/HighSchoolHacking/followers","following_url":"https://api.github.com/users/HighSchoolHacking/following{/other_user}","gists_url":"https://api.github.com/users/HighSchoolHacking/gists{/gist_id}","starred_url":"https://api.github.com/users/HighSchoolHacking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HighSchoolHacking/subscriptions","organizations_url":"https://api.github.com/users/HighSchoolHacking/orgs","repos_url":"https://api.github.com/users/HighSchoolHacking/repos","events_url":"https://api.github.com/users/HighSchoolHacking/events{/privacy}","received_events_url":"https://api.github.com/users/HighSchoolHacking/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HighSchoolHacking/GLS","description":"A unified syntax that compiles into your favorite OOP languages.","fork":false,"url":"https://api.github.com/repos/HighSchoolHacking/GLS","forks_url":"https://api.github.com/repos/HighSchoolHacking/GLS/forks","keys_url":"https://api.github.com/repos/HighSchoolHacking/GLS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HighSchoolHacking/GLS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HighSchoolHacking/GLS/teams","hooks_url":"https://api.github.com/repos/HighSchoolHacking/GLS/hooks","issue_events_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/events{/number}","events_url":"https://api.github.com/repos/HighSchoolHacking/GLS/events","assignees_url":"https://api.github.com/repos/HighSchoolHacking/GLS/assignees{/user}","branches_url":"https://api.github.com/repos/HighSchoolHacking/GLS/branches{/branch}","tags_url":"https://api.github.com/repos/HighSchoolHacking/GLS/tags","blobs_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/refs{/sha}","trees_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HighSchoolHacking/GLS/statuses/{sha}","languages_url":"https://api.github.com/repos/HighSchoolHacking/GLS/languages","stargazers_url":"https://api.github.com/repos/HighSchoolHacking/GLS/stargazers","contributors_url":"https://api.github.com/repos/HighSchoolHacking/GLS/contributors","subscribers_url":"https://api.github.com/repos/HighSchoolHacking/GLS/subscribers","subscription_url":"https://api.github.com/repos/HighSchoolHacking/GLS/subscription","commits_url":"https://api.github.com/repos/HighSchoolHacking/GLS/commits{/sha}","git_commits_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/commits{/sha}","comments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/comments{/number}","issue_comment_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/comments{/number}","contents_url":"https://api.github.com/repos/HighSchoolHacking/GLS/contents/{+path}","compare_url":"https://api.github.com/repos/HighSchoolHacking/GLS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HighSchoolHacking/GLS/merges","archive_url":"https://api.github.com/repos/HighSchoolHacking/GLS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HighSchoolHacking/GLS/downloads","issues_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues{/number}","pulls_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls{/number}","milestones_url":"https://api.github.com/repos/HighSchoolHacking/GLS/milestones{/number}","notifications_url":"https://api.github.com/repos/HighSchoolHacking/GLS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HighSchoolHacking/GLS/labels{/name}","releases_url":"https://api.github.com/repos/HighSchoolHacking/GLS/releases{/id}","deployments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/deployments","created_at":"2016-03-18T14:56:52Z","updated_at":"2016-03-18T22:02:58Z","pushed_at":"2016-05-09T08:48:52Z","git_url":"git://github.com/HighSchoolHacking/GLS.git","ssh_url":"git@github.com:HighSchoolHacking/GLS.git","clone_url":"https://github.com/HighSchoolHacking/GLS.git","svn_url":"https://github.com/HighSchoolHacking/GLS","homepage":null,"size":509,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":37,"forks":1,"open_issues":37,"watchers":0,"default_branch":"master"}},"base":{"label":"HighSchoolHacking:master","ref":"master","sha":"ecb658571770f61ad7838864cd04f478864fb942","user":{"login":"HighSchoolHacking","id":13475666,"avatar_url":"https://avatars.githubusercontent.com/u/13475666?v=3","gravatar_id":"","url":"https://api.github.com/users/HighSchoolHacking","html_url":"https://github.com/HighSchoolHacking","followers_url":"https://api.github.com/users/HighSchoolHacking/followers","following_url":"https://api.github.com/users/HighSchoolHacking/following{/other_user}","gists_url":"https://api.github.com/users/HighSchoolHacking/gists{/gist_id}","starred_url":"https://api.github.com/users/HighSchoolHacking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HighSchoolHacking/subscriptions","organizations_url":"https://api.github.com/users/HighSchoolHacking/orgs","repos_url":"https://api.github.com/users/HighSchoolHacking/repos","events_url":"https://api.github.com/users/HighSchoolHacking/events{/privacy}","received_events_url":"https://api.github.com/users/HighSchoolHacking/received_events","type":"Organization","site_admin":false},"repo":{"id":54209416,"name":"GLS","full_name":"HighSchoolHacking/GLS","owner":{"login":"HighSchoolHacking","id":13475666,"avatar_url":"https://avatars.githubusercontent.com/u/13475666?v=3","gravatar_id":"","url":"https://api.github.com/users/HighSchoolHacking","html_url":"https://github.com/HighSchoolHacking","followers_url":"https://api.github.com/users/HighSchoolHacking/followers","following_url":"https://api.github.com/users/HighSchoolHacking/following{/other_user}","gists_url":"https://api.github.com/users/HighSchoolHacking/gists{/gist_id}","starred_url":"https://api.github.com/users/HighSchoolHacking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HighSchoolHacking/subscriptions","organizations_url":"https://api.github.com/users/HighSchoolHacking/orgs","repos_url":"https://api.github.com/users/HighSchoolHacking/repos","events_url":"https://api.github.com/users/HighSchoolHacking/events{/privacy}","received_events_url":"https://api.github.com/users/HighSchoolHacking/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HighSchoolHacking/GLS","description":"A unified syntax that compiles into your favorite OOP languages.","fork":false,"url":"https://api.github.com/repos/HighSchoolHacking/GLS","forks_url":"https://api.github.com/repos/HighSchoolHacking/GLS/forks","keys_url":"https://api.github.com/repos/HighSchoolHacking/GLS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HighSchoolHacking/GLS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HighSchoolHacking/GLS/teams","hooks_url":"https://api.github.com/repos/HighSchoolHacking/GLS/hooks","issue_events_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/events{/number}","events_url":"https://api.github.com/repos/HighSchoolHacking/GLS/events","assignees_url":"https://api.github.com/repos/HighSchoolHacking/GLS/assignees{/user}","branches_url":"https://api.github.com/repos/HighSchoolHacking/GLS/branches{/branch}","tags_url":"https://api.github.com/repos/HighSchoolHacking/GLS/tags","blobs_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/refs{/sha}","trees_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HighSchoolHacking/GLS/statuses/{sha}","languages_url":"https://api.github.com/repos/HighSchoolHacking/GLS/languages","stargazers_url":"https://api.github.com/repos/HighSchoolHacking/GLS/stargazers","contributors_url":"https://api.github.com/repos/HighSchoolHacking/GLS/contributors","subscribers_url":"https://api.github.com/repos/HighSchoolHacking/GLS/subscribers","subscription_url":"https://api.github.com/repos/HighSchoolHacking/GLS/subscription","commits_url":"https://api.github.com/repos/HighSchoolHacking/GLS/commits{/sha}","git_commits_url":"https://api.github.com/repos/HighSchoolHacking/GLS/git/commits{/sha}","comments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/comments{/number}","issue_comment_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/comments{/number}","contents_url":"https://api.github.com/repos/HighSchoolHacking/GLS/contents/{+path}","compare_url":"https://api.github.com/repos/HighSchoolHacking/GLS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HighSchoolHacking/GLS/merges","archive_url":"https://api.github.com/repos/HighSchoolHacking/GLS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HighSchoolHacking/GLS/downloads","issues_url":"https://api.github.com/repos/HighSchoolHacking/GLS/issues{/number}","pulls_url":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls{/number}","milestones_url":"https://api.github.com/repos/HighSchoolHacking/GLS/milestones{/number}","notifications_url":"https://api.github.com/repos/HighSchoolHacking/GLS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HighSchoolHacking/GLS/labels{/name}","releases_url":"https://api.github.com/repos/HighSchoolHacking/GLS/releases{/id}","deployments_url":"https://api.github.com/repos/HighSchoolHacking/GLS/deployments","created_at":"2016-03-18T14:56:52Z","updated_at":"2016-03-18T22:02:58Z","pushed_at":"2016-05-09T08:48:52Z","git_url":"git://github.com/HighSchoolHacking/GLS.git","ssh_url":"git@github.com:HighSchoolHacking/GLS.git","clone_url":"https://github.com/HighSchoolHacking/GLS.git","svn_url":"https://github.com/HighSchoolHacking/GLS","homepage":null,"size":509,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":37,"forks":1,"open_issues":37,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88"},"html":{"href":"https://github.com/HighSchoolHacking/GLS/pull/88"},"issue":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/88"},"comments":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/HighSchoolHacking/GLS/statuses/f8c59f75ddf7526a4e71036a88bd6b08cddfb892"}}}}