Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27bf853

Browse files
committed
use hack arrays instead of collections
1 parent5aede90 commit27bf853

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/index.hack‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ type TResponder = (function(dict<string, string>):string);
3737
finalclassRESTAPIRouterextendsBaseRouter<TResponder> {
3838
<<__Override>>
3939
protectedfunctiongetRoutes(
40-
):ImmMap<HttpMethod,ImmMap<string,TResponder>> {
41-
returnImmMap {
42-
HttpMethod::GET=>ImmMap {
40+
):dict<HttpMethod,dict<string,TResponder>> {
41+
returndict [
42+
HttpMethod::GET=>dict [
4343
'/'=>
4444
($_params)==>'Getting the home page...',
4545
'/example/{example_param}'=>
4646
($params)==>'Example Page: accessing,'.$params['example_param'],
47-
},
48-
HttpMethod::POST=>ImmMap {
47+
],
48+
HttpMethod::POST=>dict [
4949
'/'=> ($_params)==>'Posting to the home page...',
50-
},
51-
};
50+
],
51+
];
5252
}
5353
}
5454

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp