Closures
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 32/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
ファイル、テスト、エントリーポイントは指定されていません。まず既存のレッスン構成と Rustlings の演習の範囲の決め方を確認し、そのうえで提案されている closure、Fn* trait、async-block のトピックが適合するかを評価してください。完了条件は、スコープについて合意し、列挙された 4 つの領域を扱うレビュー済みのレッスンを追加することです。
索引モデルが issue の本文から書いたものです。
説明
One topic I see new people hit pretty early on is the capturing semantics and the Fn* traits.
I was thinking of adding a few lessons to show:
- Capturing semantics without
move - Capturing semantics with
move(including ie. binding a reference to a variable before using it in the closure and a reference is moved) - How the
Fn*traits are auto-implemented. - Briefly mention that async block capturing is similar to closure capturing, but that there is no
Fn*traits for async-block-futures.
I wanted to read the room a bit before actually putting time into this. Do we think this might be a bit too advanced for rustlings? Would it depend on the actual content? Would anyone be willing to help review my lessons to try and get it over the finish line?
It's an issue I get asked about constantly, especially when dealing with GUI frameworks like egui that make use of lots of nested closures... it might help people intuit these issues more clearly.
Let me know what you think!
- 主要言語
- Rust
- スター
- 64.8k
- フォーク
- 11.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rustlings のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
A-exercises C-enhancement P-low
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
Proposal: German (Deutsch) translation for Community Exercises再び着手できるかも @mo8it が 82 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
rust-lang/rustlings#2445 · コメント 4 件 · リアクション 2 件 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rust-lang/rustlings の issue をすべて見る
似ている issue
-
fix: production-image scan fails on base-image CVEs (libzstd, libssl)対応中かも @Kravalg が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
VilnaCRM-Org/notification-service#41 ·
メンテナーはふだん 4 日以内に返信
-
Thai project names become 'project', 'project-2'… (slug keeps ASCII only)対応中かも @mastel2 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
storytold/craft-anything#2538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
compiler-explorer/compiler-explorer#9738 ·
メンテナーはふだん 2 日以内に返信
-
area: runtime enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
hffgzktbcc-blip/ounce-core#663 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
zellij-org/zellij#6026 ·
メンテナーはふだん 1 日以内に返信