JavaScript Promiseの本 v2
..................................................................................... 22 Promise#catch ................................................................................................. .................................................................................... 45 then or catch? ................................................................................................ .................................................................................... 131 Promise#catch ................................................................................................0 码力 | 137 页 | 1.17 MB | 1 年前3JavaScript Promiseの本 v1
..................................................................................... 21 Promise#catch ................................................................................................. .................................................................................... 41 then or catch? ................................................................................................ .................................................................................... 110 Promise#catch ................................................................................................0 码力 | 115 页 | 1.06 MB | 1 年前3Comprehensive Rust(日语) 202412
expressions must be exhaustive, meaning that it covers every possibility, so _ is often used as the final catch-all case. 一致を式として使用できます。if と同様に、各マッチアームは同じ型にする必要があります。型は、ブ ロックの最後の式です(存在する場合)。上記の例では、型は () です。 パターンの変数(この例では result = panic::catch_unwind(|| "No problem here!"); println!("{result:?}"); let result = panic::catch_unwind(|| { panic!("oh no!"); }); println!("{result:?}"); } • キャッチは一般的ではないため、catch_unwind を使用して例外処理を実装しようとしない0 码力 | 381 页 | 1.36 MB | 10 月前3Krita 5.2 マニュアル
bad, dangerous worst case performance hit when a detach/copy is triggered, and this is not easy to catch with standard syntax. In the blog post linked above, the discussion explains that is possible to get all types for functions and function arguments can be checked statically, and you don't have to catch typos by monitoring debug messages saying "no such slot." Another possibility is to use lambdas directly coding. We currently register following projects: https://phabricator.kde.org/T11218. Does something catch your eye? Do you have something else in mind? This list is not definite. We are always open to new0 码力 | 1591 页 | 79.16 MB | 1 年前3
共 4 条
- 1