hsf-training / hsf-training/cpluspluscourse

Add slides on `std::format` and `std::print`

Open
#199 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
TeX
Stars
313
Forks
104
PR merge metrics
No merged PRs in 30d

Description

In C++20 we got std::format and in C++23 we will get std::print. Especially the latter is quite important for beginners, as it will offer a better alternative to std::cout. And the syntax is closer to python as well :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked cppreference page for std::format and the WG21 P2093 proposal for std::print, then inspect the course's existing slide materials to find the relevant C++ I/O section. Done means adding slides that introduce both features, explain why std::print is an alternative to std::cout, and show their Python-like syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.