大学などでよくある「プログラミング演習」の課題 「名簿管理プログラム」を練習として Rust で実装したものです.
オリジナルは C言語での課題ですが, 他の言語での練習にもいいかもしれません.
- パーザ的な文字列処理
- 各処理へのディスパッチ
- 構造体のようなものの扱い
- 標準入出力の扱い
- ファイルの扱い
- エラー処理
- 課題を説明するドキュメント
- 山本和彦さんに作っていただいた Haskellによる実装
- Rust の公式文書 エラーハンドリング が,やや古いけど参考になる(2nd edition には該当部分が見当らない).
ただし,今は
try!
ではなく,?
を使うといい.