Y
Hacker News
new
|
ask
|
show
|
jobs
by
veltas
2 hours ago
Surely std::print() shouldn't print anything?
3 comments
CamouflagedKiwi
1 hour ago
It's a typo, he describes it as std::println in the text, but the code snippet is just print()
link
steeleduncan
1 hour ago
I think it is a typo, and should be std::println()
link
nikbackm
2 hours ago
Why even call it in that case?
link
xuhu
2 hours ago
It's apparently a typo in the article, they probably meant to write `println()`.
link
IshKebab
28 minutes ago
Typo in this case, but in general supporting "useless" code like this is sometimes a good idea because it makes writing generic code easier. Maybe not in this case.
link