例えば,適当な列挙型を用意しておいて let router = Router::<RouteResult>::new(); match router.recognize() { Some(result) => process(result), None => not_found(), } と書いても良いわけで,この方が API の仕様変更に対する剛健性を高くすることが出来る気がする.
-
-
Show this thread
-
これを突き詰めた結果が Finch の Endpoint であり,同時に Finchers がもつ設計思想でもある(後付け)
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.