Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
orf
8 months ago
|
parent
|
context
|
favorite
| on:
F-strings for C++26 proposal [pdf]
FYI that code sample is broken, it should be `(int(many()),)`
Ironic I guess?
lifthrasiir
8 months ago
[–]
It's not broken (try it!). Any value is interpreted as an implicit 1-tuple if it's not a tuple nor a dict. A better example would have been `"..." % many()` where `many` returns a tuple or dict.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Ironic I guess?